Skip to content

Commit 01254f0

Browse files
committed
ci: use the preinstalled ghc
1 parent 3004761 commit 01254f0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/ci.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ jobs:
3636
fail-fast: false
3737
matrix:
3838
plan:
39-
- { ghc: "912", stack: "stack --stack-yaml=stack912.yaml" }
39+
- { ghc: "912", stack: "stack --stack-yaml=stack912.yaml --system-ghc --no-install-ghc" }
40+
# Use the preinstalled stack and ghc (3.5.1 and 9.12.2 as of 2025-04).
41+
# This risks breaking when github updates these, but avoids a lot of wasted work.
4042

4143
steps:
4244

@@ -69,22 +71,19 @@ jobs:
6971
restore-keys: |
7072
${{ runner.os }}-stack-work-${{ matrix.plan.ghc }}
7173
72-
# - name: Install stack
74+
# - name: Install specific stack version
7375
# run: |
7476
# mkdir -p ~/.local/bin
7577
# export PATH=~/.local/bin:$PATH
7678
# # curl -sL https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack
7779
# if [[ ! -x ~/.local/bin/stack ]]; then curl -sL https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi
7880
# stack --version
7981
#
80-
# - name: Install GHC
82+
# - name: Install specific GHC version
8183
# env:
8284
# stack: ${{ matrix.plan.stack }}
8385
# run: |
8486
# $stack setup --install-ghc
85-
#
86-
# Instead, use preinstalled stack and ghc. This risks breaking when github updates these,
87-
# but saves a lot of wasteful carbon emissions. As of 2025-04 they are 3.5.1 and 9.12.2.
8887

8988
- name: Install haskell deps
9089
env:

0 commit comments

Comments
 (0)