Skip to content

Commit 09dd7aa

Browse files
committed
add arch to cache key
1 parent d210856 commit 09dd7aa

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

.github/actions/build/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ runs:
4545
path: |
4646
src/bindings/compiled
4747
src/bindings/mina-transaction/gen
48-
key: bindings-${{ github.event.pull_request.head.sha || github.sha }}-${{ inputs.proof_systems_commit }}
48+
key: bindings-${{ runner.OS }}-${{ runner.arch}}-${{ github.event.pull_request.head.sha || github.sha }}-${{ inputs.proof_systems_commit }}
4949
- name: Build the o1js bindings
5050
if: ${{ steps.bindings-cache.outputs.cache-hit != 'true' }}
5151
shell: bash
@@ -61,7 +61,7 @@ runs:
6161
~/.npm
6262
node_modules
6363
dist
64-
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.ts', '**/*.js') }}
64+
key: ${{ runner.OS }}-${{ runner.arch }}-node-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.ts', '**/*.js') }}
6565
- name: Build examples
6666
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
6767
shell: bash

.github/workflows/checks.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ jobs:
293293
uses: actions/cache@v4
294294
with:
295295
path: ~/.npm
296-
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
296+
key: ${{ runner.OS }}-${runner.arch }}-node-${{ hashFiles('**/package-lock.json') }}
297297

298298
- name: Cache Playwright browsers
299299
uses: actions/cache@v4
@@ -327,12 +327,7 @@ jobs:
327327
master:
328328
needs: [Prepare]
329329
timeout-minutes: 45
330-
strategy:
331-
fail-fast: false
332-
matrix:
333-
runner: [sdk-team-github-runner-arm-01-benchmarks,sdk-team-github-runner-x86-01-benchmarks,sdk-team-github-runner-x86-02-build,sdk-team-github-runner-x86-03-build,sdk-team-github-runner-x86-04-build]
334-
335-
runs-on: ${{ matrix.runner }}
330+
runs-on: ubuntu-latest
336331
services:
337332
mina-local-network:
338333
image: o1labs/mina-local-network:master-latest-lightnet
@@ -367,12 +362,7 @@ jobs:
367362
compatible:
368363
needs: [Prepare]
369364
timeout-minutes: 45
370-
strategy:
371-
fail-fast: false
372-
matrix:
373-
runner: [sdk-team-github-runner-arm-01-benchmarks,sdk-team-github-runner-x86-01-benchmarks,sdk-team-github-runner-x86-02-build,sdk-team-github-runner-x86-03-build,sdk-team-github-runner-x86-04-build]
374-
375-
runs-on: ${{ matrix.runner }}
365+
runs-on: ubuntu-latest
376366
services:
377367
mina-local-network:
378368
image: o1labs/mina-local-network:compatible-latest-lightnet

0 commit comments

Comments
 (0)