Skip to content

Commit

Permalink
[ ci ] Different cache keys for different version of Agda
Browse files Browse the repository at this point in the history
  • Loading branch information
banacorn committed Dec 5, 2024
1 parent 0c35610 commit ebad597
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
agda: ['Agda-2.7.0.1']
os: [ubuntu-latest, macos-latest, macos-13, windows-latest]
agda: ['Agda-2.7.0.1', 'Agda-2.6.4.3']
fail-fast: false
steps:

Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: ${{ env.STACK_ROOT }}
key: ${{ matrix.os }}-stack-resolver-${{ env.STACK_RESOLVER }}-global-${{ hashFiles('**.yaml') }}
key: ${{ matrix.os }}-stack-resolver-${{ env.STACK_RESOLVER }}-global-${{ hashFiles('**.yaml') }}-${{ matrix.agda }}
restore-keys: |
${{ matrix.os }}-stack-resolver-${{ env.STACK_RESOLVER }}-global
Expand All @@ -100,7 +100,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: .stack-work
key: ${{ matrix.os }}-stack-resolver-${{ env.STACK_RESOLVER }}-work-${{ hashFiles('**.yaml') }}
key: ${{ matrix.os }}-stack-resolver-${{ env.STACK_RESOLVER }}-work-${{ hashFiles('**.yaml') }}-${{ matrix.agda }}
restore-keys: |
${{ matrix.os }}-stack-resolver-${{ env.STACK_RESOLVER }}-work
Expand Down

0 comments on commit ebad597

Please sign in to comment.