Skip to content

Commit 66b4371

Browse files
committed
fix cache key references
1 parent fb25ea5 commit 66b4371

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

.github/workflows/block-build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defaults:
2020
concurrency:
2121
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-block
2222
cancel-in-progress: true
23-
23+
> tsc --build ./tsconfig.prod.esm.json
2424
jobs:
2525
test-block:
2626
runs-on: ubuntu-latest
@@ -49,7 +49,7 @@ jobs:
4949
id: submodules-cache
5050
with:
5151
path: ${{github.workspace}}/packages/ethereum-tests
52-
key: submodule-cache-key
52+
key: ${{ inputs.submodule-cache-key}}
5353

5454
- name: Check if ethereum-tests is present (if not, fail)
5555
if: steps.submodules-cache.outputs.cache-hit != 'true'

.github/workflows/vm-build.yml

+7
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ jobs:
8686
if: steps.dep-cache.outputs.cache-hit != 'true'
8787
run: npm ci
8888
working-directory: ${{ github.workspace }}
89+
90+
- uses: actions/cache/restore@v4
91+
name: Initialize ethereum-tests
92+
id: submodules-cache
93+
with:
94+
path: ${{github.workspace}}/packages/ethereum-tests
95+
key: ${{ inputs.submodule-cache-key}}
8996

9097
- run: npm run test:state:selectedForks
9198

.github/workflows/vm-pr.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
id: submodules-cache
5050
with:
5151
path: ${{github.workspace}}/packages/ethereum-tests
52-
key: ethereum-tests-${{ github.run_id }}
52+
key: ${{ inputs.submodule-cache-key}}
5353

5454
- name: Check if ethereum-tests is present (if not, fail)
5555
if: steps.submodules-cache.outputs.cache-hit != 'true'
@@ -93,7 +93,7 @@ jobs:
9393
id: submodules-cache
9494
with:
9595
path: ${{github.workspace}}/packages/ethereum-tests
96-
key: ethereum-tests-${{ github.run_id }}
96+
key: ${{ inputs.submodule-cache-key}}
9797

9898
- name: Check if ethereum-tests is present (if not, fail)
9999
if: steps.submodules-cache.outputs.cache-hit != 'true'
@@ -149,7 +149,7 @@ jobs:
149149
id: submodules-cache
150150
with:
151151
path: ${{github.workspace}}/packages/ethereum-tests
152-
key: submodule-cache-key
152+
key: ${{ inputs.submodule-cache-key}}
153153

154154
- name: Check if ethereum-tests is present (if not, fail)
155155
if: steps.submodules-cache.outputs.cache-hit != 'true'
@@ -200,7 +200,7 @@ jobs:
200200
id: submodules-cache
201201
with:
202202
path: ${{github.workspace}}/packages/ethereum-tests
203-
key: ethereum-tests-${{ github.run_id }}
203+
key: ${{ inputs.submodule-cache-key}}
204204

205205
- name: Check if ethereum-tests is present (if not, fail)
206206
if: steps.submodules-cache.outputs.cache-hit != 'true'
@@ -263,7 +263,7 @@ jobs:
263263
id: submodules-cache
264264
with:
265265
path: ${{github.workspace}}/packages/ethereum-tests
266-
key: ethereum-tests-${{ github.run_id }}
266+
key: ${{ inputs.submodule-cache-key}}
267267

268268
- name: Check if ethereum-tests is present (if not, fail)
269269
if: steps.submodules-cache.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)