Skip to content

Commit

Permalink
CI: attempt to fix caching, attempt number 49.
Browse files Browse the repository at this point in the history
Can you tell I am angry about actions/cache yet.
  • Loading branch information
whitequark committed Oct 6, 2023
1 parent 1ca571c commit 2470df5
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache Glasgow build products
uses: actions/cache@v3
with:
path: ~/.cache/GlasgowEmbedded
key: Glasgow-${{ matrix.python-version }}-${{ hashFiles('./software/**') }}
restore-keys: |
Glasgow-${{ matrix.python-version }}-
Glasgow-
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
with:
Expand All @@ -40,13 +48,9 @@ jobs:
with:
path: ~/.cache/YoWASP
key: YoWASP-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('./software/.venv/**/*.wasm') }}
restore-keys: YoWASP-
- name: Cache Glasgow build products
uses: actions/cache@v3
with:
path: ~/.cache/GlasgowEmbedded
key: Glasgow-py${{ matrix.python-version }}-${{ hashFiles('./software/**', '!./software/.venv') }}
restore-keys: Glasgow-py${{ matrix.python-version }}-
restore-keys: |
YoWASP-${{ runner.os }}-${{ matrix.python-version }}-
YoWASP-${{ runner.os }}-
- name: Run tests
working-directory: ./software
run: |
Expand Down

0 comments on commit 2470df5

Please sign in to comment.