Skip to content

Commit 7582ec3

Browse files
committed
CI: fix YoWASP cache key calculation.
1 parent ac68453 commit 7582ec3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/main.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ jobs:
2727
continue-on-error: '${{ matrix.allow-failure }}'
2828
name: 'test (${{ matrix.python-version }})'
2929
steps:
30-
- name: Preserve Wasm cache
31-
uses: actions/cache@v3
32-
with:
33-
path: |
34-
~/.cache/wasmtime
35-
~/.cache/YoWASP
36-
key: ${{ runner.os }}-wasm
3730
- name: Check out source code
3831
uses: actions/checkout@v3
3932
with:
@@ -50,6 +43,13 @@ jobs:
5043
sudo apt-get install yices2
5144
pip install codecov
5245
pdm install --dev
46+
- name: Cache YoWASP build products
47+
uses: actions/cache@v3
48+
with:
49+
path: ~/.cache/YoWASP
50+
key: YoWASP-${{ runner.os }}-${{ hashFiles('./.venv/**/*.wasm') }}
51+
restore-keys: |
52+
YoWASP-${{ runner.os }}-
5353
- name: Run tests
5454
run: |
5555
pdm run test

0 commit comments

Comments
 (0)