File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 36
36
fail-fast : false
37
37
matrix :
38
38
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.
40
42
41
43
steps :
42
44
@@ -69,22 +71,19 @@ jobs:
69
71
restore-keys : |
70
72
${{ runner.os }}-stack-work-${{ matrix.plan.ghc }}
71
73
72
- # - name: Install stack
74
+ # - name: Install specific stack version
73
75
# run: |
74
76
# mkdir -p ~/.local/bin
75
77
# export PATH=~/.local/bin:$PATH
76
78
# # 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
77
79
# 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
78
80
# stack --version
79
81
#
80
- # - name: Install GHC
82
+ # - name: Install specific GHC version
81
83
# env:
82
84
# stack: ${{ matrix.plan.stack }}
83
85
# run: |
84
86
# $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.
88
87
89
88
- name : Install haskell deps
90
89
env :
You can’t perform that action at this time.
0 commit comments