From 7582ec301c2ef8cb233f6c862b2aff600b4ba603 Mon Sep 17 00:00:00 2001 From: Catherine Date: Mon, 9 Oct 2023 00:19:03 +0000 Subject: [PATCH] CI: fix YoWASP cache key calculation. --- .github/workflows/main.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 7b859cb..4d60b2a 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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