Skip to content

Commit ebad597

Browse files
committed
[ ci ] Different cache keys for different version of Agda
1 parent 0c35610 commit ebad597

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
strategy:
2121
matrix:
22-
os: [windows-latest]
23-
agda: ['Agda-2.7.0.1']
22+
os: [ubuntu-latest, macos-latest, macos-13, windows-latest]
23+
agda: ['Agda-2.7.0.1', 'Agda-2.6.4.3']
2424
fail-fast: false
2525
steps:
2626

@@ -91,7 +91,7 @@ jobs:
9191
uses: actions/cache/restore@v4
9292
with:
9393
path: ${{ env.STACK_ROOT }}
94-
key: ${{ matrix.os }}-stack-resolver-${{ env.STACK_RESOLVER }}-global-${{ hashFiles('**.yaml') }}
94+
key: ${{ matrix.os }}-stack-resolver-${{ env.STACK_RESOLVER }}-global-${{ hashFiles('**.yaml') }}-${{ matrix.agda }}
9595
restore-keys: |
9696
${{ matrix.os }}-stack-resolver-${{ env.STACK_RESOLVER }}-global
9797
@@ -100,7 +100,7 @@ jobs:
100100
uses: actions/cache/restore@v4
101101
with:
102102
path: .stack-work
103-
key: ${{ matrix.os }}-stack-resolver-${{ env.STACK_RESOLVER }}-work-${{ hashFiles('**.yaml') }}
103+
key: ${{ matrix.os }}-stack-resolver-${{ env.STACK_RESOLVER }}-work-${{ hashFiles('**.yaml') }}-${{ matrix.agda }}
104104
restore-keys: |
105105
${{ matrix.os }}-stack-resolver-${{ env.STACK_RESOLVER }}-work
106106

0 commit comments

Comments
 (0)