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 }}'
|
continue-on-error: '${{ matrix.allow-failure }}'
|
||||||
name: 'test (${{ matrix.python-version }})'
|
name: 'test (${{ matrix.python-version }})'
|
||||||
steps:
|
steps:
|
||||||
- name: Preserve Wasm cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cache/wasmtime
|
|
||||||
~/.cache/YoWASP
|
|
||||||
key: ${{ runner.os }}-wasm
|
|
||||||
- name: Check out source code
|
- name: Check out source code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
@ -50,6 +43,13 @@ jobs:
|
||||||
sudo apt-get install yices2
|
sudo apt-get install yices2
|
||||||
pip install codecov
|
pip install codecov
|
||||||
pdm install --dev
|
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
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
pdm run test
|
pdm run test
|
||||||
|
|
Loading…
Reference in a new issue