CI: fix YoWASP cache key calculation.
This commit is contained in:
parent
ac68453fe4
commit
7582ec301c
14
.github/workflows/main.yaml
vendored
14
.github/workflows/main.yaml
vendored
|
@ -27,13 +27,6 @@ jobs:
|
|||
continue-on-error: '${{ matrix.allow-failure }}'
|
||||
name: 'test (${{ matrix.python-version }})'
|
||||
steps:
|
||||
- name: Preserve Wasm cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cache/wasmtime
|
||||
~/.cache/YoWASP
|
||||
key: ${{ runner.os }}-wasm
|
||||
- name: Check out source code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
|
@ -50,6 +43,13 @@ jobs:
|
|||
sudo apt-get install yices2
|
||||
pip install codecov
|
||||
pdm install --dev
|
||||
- name: Cache YoWASP build products
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.cache/YoWASP
|
||||
key: YoWASP-${{ runner.os }}-${{ hashFiles('./.venv/**/*.wasm') }}
|
||||
restore-keys: |
|
||||
YoWASP-${{ runner.os }}-
|
||||
- name: Run tests
|
||||
run: |
|
||||
pdm run test
|
||||
|
|
Loading…
Reference in a new issue