|
21 | 21 | runs-on: ${{ matrix.os }} |
22 | 22 | strategy: |
23 | 23 | matrix: |
24 | | - os: [windows-latest, ubuntu-latest, macos-latest] |
25 | | - agda: ["Agda-2.6.4", "Agda-2.7.0", "Agda-2.8.0"] |
| 24 | + include: |
| 25 | + - os: windows-latest |
| 26 | + agda: "Agda-2.6.4" |
| 27 | + stack-config: ".github/workflows/stack-Agda-2.6.4.yaml" |
| 28 | + - os: ubuntu-latest |
| 29 | + agda: "Agda-2.6.4" |
| 30 | + stack-config: ".github/workflows/stack-Agda-2.6.4.yaml" |
| 31 | + - os: macos-latest |
| 32 | + agda: "Agda-2.6.4" |
| 33 | + stack-config: ".github/workflows/stack-Agda-2.6.4.yaml" |
| 34 | + - os: windows-latest |
| 35 | + agda: "Agda-2.7.0" |
| 36 | + stack-config: ".github/workflows/stack-Agda-2.7.0.yaml" |
| 37 | + - os: ubuntu-latest |
| 38 | + agda: "Agda-2.7.0" |
| 39 | + stack-config: ".github/workflows/stack-Agda-2.7.0.yaml" |
| 40 | + - os: macos-latest |
| 41 | + agda: "Agda-2.7.0" |
| 42 | + stack-config: ".github/workflows/stack-Agda-2.7.0.yaml" |
| 43 | + - os: windows-latest |
| 44 | + agda: "Agda-2.8.0" |
| 45 | + stack-config: ".github/workflows/stack-Agda-2.8.0.yaml" |
| 46 | + - os: ubuntu-latest |
| 47 | + agda: "Agda-2.8.0" |
| 48 | + stack-config: ".github/workflows/stack-Agda-2.8.0.yaml" |
| 49 | + - os: macos-latest |
| 50 | + agda: "Agda-2.8.0" |
| 51 | + stack-config: ".github/workflows/stack-Agda-2.8.0.yaml" |
26 | 52 | fail-fast: false |
27 | 53 |
|
28 | 54 | # Steps represent a sequence of tasks that will be executed as part of the job |
|
82 | 108 | uses: actions/cache/restore@v4 |
83 | 109 | with: |
84 | 110 | path: ${{ env.DIST }} |
85 | | - key: ${{ env.DIST }} |
| 111 | + key: ${{ env.DIST }}-${{ matrix.stack-config }} |
86 | 112 | restore-keys: | |
87 | | - ${{ env.DIST }} |
| 113 | + ${{ env.DIST }}-${{ matrix.stack-config }} |
88 | 114 | |
89 | 115 | - name: 💾 Restore VSCode from .vscode-test |
90 | 116 | id: vscode |
@@ -130,8 +156,8 @@ jobs: |
130 | 156 | - name: ⏬ Install Agda |
131 | 157 | if: ${{ steps.check-agda.outcome == 'failure'}} |
132 | 158 | run: | |
133 | | - stack install --resolver=lts-24.1 --allow-different-user ${{ matrix.agda }} |
134 | | - echo "STACK_LOCAL_BIN=$(stack path --local-bin)" >> "$GITHUB_ENV" |
| 159 | + stack install --stack-yaml=${{ matrix.stack-config }} --allow-different-user ${{ matrix.agda }} |
| 160 | + echo "STACK_LOCAL_BIN=$(stack path --stack-yaml=${{ matrix.stack-config }} --local-bin)" >> "$GITHUB_ENV" |
135 | 161 |
|
136 | 162 | - name: 📦 Move artefacts to ${{ env.DIST }} |
137 | 163 | if: ${{ steps.check-agda.outcome == 'failure'}} |
|
0 commit comments