feat(ci): add restore-keys for ci speedup (#3516)
This commit is contained in:
parent
40ef0f23cb
commit
05197d5213
8
.github/workflows/ci.yaml
vendored
8
.github/workflows/ci.yaml
vendored
@ -38,6 +38,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: "**/node_modules"
|
path: "**/node_modules"
|
||||||
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
|
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
yarn-build-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.cache-yarn.outputs.cache-hit != 'true'
|
if: steps.cache-yarn.outputs.cache-hit != 'true'
|
||||||
@ -78,6 +80,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: "**/node_modules"
|
path: "**/node_modules"
|
||||||
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
|
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
yarn-build-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.cache-yarn.outputs.cache-hit != 'true'
|
if: steps.cache-yarn.outputs.cache-hit != 'true'
|
||||||
@ -107,6 +111,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: "**/node_modules"
|
path: "**/node_modules"
|
||||||
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
|
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
yarn-build-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.cache-yarn.outputs.cache-hit != 'true'
|
if: steps.cache-yarn.outputs.cache-hit != 'true'
|
||||||
@ -347,6 +353,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: "**/node_modules"
|
path: "**/node_modules"
|
||||||
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
|
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
yarn-build-
|
||||||
|
|
||||||
- name: Download release packages
|
- name: Download release packages
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
|
@ -75,7 +75,7 @@ main() {
|
|||||||
|
|
||||||
# This is a copy of symlink_asar in ../lib.sh. Look there for details.
|
# This is a copy of symlink_asar in ../lib.sh. Look there for details.
|
||||||
symlink_asar() {
|
symlink_asar() {
|
||||||
rm -f node_modules.asar
|
rm -rf node_modules.asar
|
||||||
if [ "${WINDIR-}" ]; then
|
if [ "${WINDIR-}" ]; then
|
||||||
mklink /J node_modules.asar node_modules
|
mklink /J node_modules.asar node_modules
|
||||||
else
|
else
|
||||||
|
@ -113,7 +113,7 @@ RELEASE_PATH="${RELEASE_PATH-release}"
|
|||||||
# Code itself but also extensions will look specifically in this directory for
|
# Code itself but also extensions will look specifically in this directory for
|
||||||
# files (like the ripgrep binary or the oniguruma wasm).
|
# files (like the ripgrep binary or the oniguruma wasm).
|
||||||
symlink_asar() {
|
symlink_asar() {
|
||||||
rm -f node_modules.asar
|
rm -rf node_modules.asar
|
||||||
if [ "${WINDIR-}" ]; then
|
if [ "${WINDIR-}" ]; then
|
||||||
# mklink takes the link name first.
|
# mklink takes the link name first.
|
||||||
mklink /J node_modules.asar node_modules
|
mklink /J node_modules.asar node_modules
|
||||||
|
Reference in New Issue
Block a user