Skip to content

Commit

Permalink
fix cache key references
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Aug 17, 2024
1 parent fb25ea5 commit 66b4371
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/block-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defaults:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-block
cancel-in-progress: true

> tsc --build ./tsconfig.prod.esm.json
jobs:
test-block:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
id: submodules-cache
with:
path: ${{github.workspace}}/packages/ethereum-tests
key: submodule-cache-key
key: ${{ inputs.submodule-cache-key}}

- name: Check if ethereum-tests is present (if not, fail)
if: steps.submodules-cache.outputs.cache-hit != 'true'
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/vm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ jobs:
if: steps.dep-cache.outputs.cache-hit != 'true'
run: npm ci
working-directory: ${{ github.workspace }}

- uses: actions/cache/restore@v4
name: Initialize ethereum-tests
id: submodules-cache
with:
path: ${{github.workspace}}/packages/ethereum-tests
key: ${{ inputs.submodule-cache-key}}

- run: npm run test:state:selectedForks

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/vm-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
id: submodules-cache
with:
path: ${{github.workspace}}/packages/ethereum-tests
key: ethereum-tests-${{ github.run_id }}
key: ${{ inputs.submodule-cache-key}}

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

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

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

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

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

0 comments on commit 66b4371

Please sign in to comment.