Skip to content

Commit 305033b

Browse files
authored
ci: Fix quick-jobs GHC version to 9.6 (#10026)
1 parent 03d9829 commit 305033b

File tree

1 file changed

+39
-8
lines changed

1 file changed

+39
-8
lines changed

.github/workflows/quick-jobs.yml

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
types:
1515
- created
1616

17+
env:
18+
GHC_FOR_QUICK_JOBS: 9.6.5
19+
1720
jobs:
1821
meta:
1922
name: Meta checks
@@ -25,15 +28,13 @@ jobs:
2528
gen-paths-module
2629
gen-spdx
2730
gen-spdx-exc
28-
# This job is not run in a container, any recent GHC should be fine
2931
steps:
30-
# SKIP installation of ghc and cabal and use the preinstalled versions.
31-
# - name: ghcup
32-
# run: |
33-
# ghcup --version
34-
# ghcup config set cache true
35-
# ghcup install ghc recommended
36-
# ghcup set ghc recommended
32+
- name: ghcup
33+
run: |
34+
ghcup --version
35+
ghcup config set cache true
36+
ghcup install ghc $GHC_FOR_QUICK_JOBS
37+
ghcup set ghc $GHC_FOR_QUICK_JOBS
3738
- name: Haskell versions
3839
run: |
3940
ghc --version
@@ -71,6 +72,16 @@ jobs:
7172
name: Doctest Cabal
7273
runs-on: ubuntu-latest
7374
steps:
75+
- name: ghcup
76+
run: |
77+
ghcup --version
78+
ghcup config set cache true
79+
ghcup install ghc $GHC_FOR_QUICK_JOBS
80+
ghcup set ghc $GHC_FOR_QUICK_JOBS
81+
- name: Haskell versions
82+
run: |
83+
ghc --version
84+
cabal --version
7485
# It is complicated to get a proper cache key for the dependencies of a package
7586
# (here: doctest) that we just `cabal install`.
7687
# So, as a heuristics we update the cache once per day.
@@ -106,6 +117,16 @@ jobs:
106117
env:
107118
cabal_build: cabal build buildinfo-reference-generator
108119
steps:
120+
- name: ghcup
121+
run: |
122+
ghcup --version
123+
ghcup config set cache true
124+
ghcup install ghc $GHC_FOR_QUICK_JOBS
125+
ghcup set ghc $GHC_FOR_QUICK_JOBS
126+
- name: Haskell versions
127+
run: |
128+
ghc --version
129+
cabal --version
109130
- name: Update Hackage index
110131
run: cabal v2-update
111132
- uses: actions/checkout@v4
@@ -133,6 +154,16 @@ jobs:
133154
name: Check Release Project
134155
runs-on: ubuntu-latest
135156
steps:
157+
- name: ghcup
158+
run: |
159+
ghcup --version
160+
ghcup config set cache true
161+
ghcup install ghc $GHC_FOR_QUICK_JOBS
162+
ghcup set ghc $GHC_FOR_QUICK_JOBS
163+
- name: Haskell versions
164+
run: |
165+
ghc --version
166+
cabal --version
136167
- name: Update Hackage Index
137168
run: cabal v2-update
138169
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)