Skip to content

Commit 852d49b

Browse files
committed
[ fix ] Trying to make Agda-2.8.0 build on Ubuntu
1 parent 9cab6ab commit 852d49b

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ jobs:
2121
runs-on: ${{ matrix.os }}
2222
strategy:
2323
matrix:
24-
os: [windows-latest, ubuntu-latest, macos-latest]
25-
agda: ["Agda-2.6.4", "Agda-2.7.0", "Agda-2.8.0"]
24+
os: [ubuntu-latest]
25+
# os: [windows-latest, ubuntu-latest, macos-latest]
26+
agda: ["Agda-2.8.0"]
27+
# agda: ["Agda-2.6.4", "Agda-2.7.0", "Agda-2.8.0"]
2628
fail-fast: false
2729

2830
# Steps represent a sequence of tasks that will be executed as part of the job
@@ -130,7 +132,19 @@ jobs:
130132
- name: ⏬ Install Agda
131133
if: ${{ steps.check-agda.outcome == 'failure'}}
132134
run: |
133-
stack install --resolver=lts-24.1 ${{ matrix.agda }}
135+
# Create temporary stack.yaml with extra-deps
136+
cat > stack-temp.yaml << EOF
137+
resolver: lts-24.1
138+
compiler: ghc-9.10.2
139+
packages: []
140+
extra-deps:
141+
- ${{ matrix.agda }}
142+
- hashable-1.4.7.0
143+
- alex-3.5.3.1
144+
- network-simple-0.4.2
145+
EOF
146+
147+
stack install --stack-yaml=stack-temp.yaml --allow-different-user ${{ matrix.agda }}
134148
echo "STACK_LOCAL_BIN=$(stack path --local-bin)" >> "$GITHUB_ENV"
135149
136150
- name: 📦 Move artefacts to ${{ env.DIST }}

0 commit comments

Comments
 (0)