Skip to content

Commit ac5b6bf

Browse files
author
Luca Forstner
committed
ci: Don't fail profiling bindings job on cache miss
1 parent e6861cf commit ac5b6bf

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,14 +1416,23 @@ jobs:
14161416
with:
14171417
ref: ${{ env.HEAD_COMMIT }}
14181418

1419+
- name: Setup Node
1420+
uses: actions/setup-node@v4
1421+
with:
1422+
node-version: ${{ matrix.node }}
1423+
14191424
- name: Restore dependency cache
14201425
uses: actions/cache/restore@v4
14211426
id: restore-dependencies
14221427
with:
14231428
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
14241429
key: ${{ needs.job_build.outputs.dependency_cache_key }}
14251430
enableCrossOsArchive: true
1426-
fail-on-cache-miss: true
1431+
1432+
- name: Install dependencies
1433+
if: steps.restore-dependencies.outputs.cache-hit != 'true'
1434+
run: yarn install --ignore-engines --frozen-lockfile
1435+
shell: bash
14271436

14281437
- name: Restore build cache
14291438
uses: actions/cache/restore@v4
@@ -1432,15 +1441,17 @@ jobs:
14321441
path: ${{ env.CACHED_BUILD_PATHS }}
14331442
key: ${{ needs.job_build.outputs.dependency_cache_key }}
14341443
enableCrossOsArchive: true
1435-
fail-on-cache-miss: true
1444+
1445+
- name: Build packages
1446+
env:
1447+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1448+
if: steps.restore-build.outputs.cache-hit != 'true'
1449+
run: yarn build
14361450

14371451
- name: Configure safe directory
14381452
run: |
14391453
git config --global --add safe.directory "*"
14401454
1441-
- name: Install yarn
1442-
run: npm i -g [email protected] --force
1443-
14441455
- name: Increase yarn network timeout on Windows
14451456
if: contains(matrix.os, 'windows')
14461457
run: yarn config set network-timeout 600000 -g
@@ -1452,15 +1463,6 @@ jobs:
14521463
with:
14531464
python-version: '3.8.10'
14541465

1455-
- name: Setup Node
1456-
uses: actions/setup-node@v4
1457-
with:
1458-
node-version: ${{ matrix.node }}
1459-
1460-
- name: Install Dependencies
1461-
if: steps.restore-dependencies.outputs.cache-hit != 'true'
1462-
run: yarn install --frozen-lockfile --ignore-engines --ignore-scripts
1463-
14641466
- name: Setup (arm64| ${{ contains(matrix.container, 'alpine') && 'musl' || 'glibc' }})
14651467
if: matrix.arch == 'arm64' && !contains(matrix.container, 'alpine') && matrix.target_platform != 'darwin'
14661468
run: |

0 commit comments

Comments
 (0)