Skip to content

Commit ead83b3

Browse files
committed
[ fix ] Provide the CI with stack.yaml for building Agda
1 parent e36ef8f commit ead83b3

File tree

4 files changed

+42
-4
lines changed

4 files changed

+42
-4
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
resolver: lts-24.1
2+
compiler: ghc-9.10.2
3+
# Allow a newer minor version of GHC than the snapshot specifies
4+
compiler-check: newer-minor
5+
6+
packages: []
7+
8+
extra-deps:
9+
- Agda-2.6.4.3
10+
- hashable-1.4.7.0@sha256:573f3ab242f75465a0d67ce9d84202650a1606575e6dbd6d31ffcf4767a9a379,6629
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
resolver: lts-24.1
2+
compiler: ghc-9.10.2
3+
# Allow a newer minor version of GHC than the snapshot specifies
4+
compiler-check: newer-minor
5+
6+
packages: []
7+
8+
extra-deps:
9+
- Agda-2.7.0.1
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
resolver: lts-24.1
2+
compiler: ghc-9.10.2
3+
# Allow a newer minor version of GHC than the snapshot specifies
4+
compiler-check: newer-minor
5+
6+
packages: []
7+
8+
extra-deps:
9+
- Agda-2.8.0

.github/workflows/test.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ jobs:
2323
matrix:
2424
os: [windows-latest, ubuntu-latest, macos-latest]
2525
agda: ["Agda-2.6.4", "Agda-2.7.0", "Agda-2.8.0"]
26+
include:
27+
- agda: "Agda-2.6.4"
28+
agda-version: "Agda-2.6.4.3"
29+
stack-config: ".github/stack/stack-Agda-2.6.4.3.yaml"
30+
- agda: "Agda-2.7.0"
31+
agda-version: "Agda-2.7.0.1"
32+
stack-config: ".github/stack/stack-Agda-2.7.0.1.yaml"
33+
- agda: "Agda-2.8.0"
34+
agda-version: "Agda-2.8.0"
35+
stack-config: ".github/stack/stack-Agda-2.8.0.yaml"
2636
fail-fast: false
2737

2838
# Steps represent a sequence of tasks that will be executed as part of the job
@@ -82,9 +92,9 @@ jobs:
8292
uses: actions/cache/restore@v4
8393
with:
8494
path: ${{ env.DIST }}
85-
key: ${{ env.DIST }}
95+
key: ${{ env.DIST }}-${{ matrix.stack-config }}
8696
restore-keys: |
87-
${{ env.DIST }}
97+
${{ env.DIST }}-${{ matrix.stack-config }}
8898
8999
- name: 💾 Restore VSCode from .vscode-test
90100
id: vscode
@@ -130,8 +140,8 @@ jobs:
130140
- name: ⏬ Install Agda
131141
if: ${{ steps.check-agda.outcome == 'failure'}}
132142
run: |
133-
stack install --resolver=lts-24.1 --allow-different-user ${{ matrix.agda }}
134-
echo "STACK_LOCAL_BIN=$(stack path --local-bin)" >> "$GITHUB_ENV"
143+
stack install --stack-yaml=${{ matrix.stack-config }} --allow-different-user ${{ matrix.agda-version }}
144+
echo "STACK_LOCAL_BIN=$(stack path --stack-yaml=${{ matrix.stack-config }} --local-bin)" >> "$GITHUB_ENV"
135145
136146
- name: 📦 Move artefacts to ${{ env.DIST }}
137147
if: ${{ steps.check-agda.outcome == 'failure'}}

0 commit comments

Comments
 (0)