8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.19.20241202
11
+ # version: 0.19.20250605
12
12
#
13
- # REGENDATA ("0.19.20241202 ",["github","system-linux-proc.cabal"])
13
+ # REGENDATA ("0.19.20250605 ",["github","system-linux-proc.cabal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
19
19
jobs :
20
20
linux :
21
21
name : Haskell-CI - Linux - ${{ matrix.compiler }}
22
- runs-on : ubuntu-20 .04
22
+ runs-on : ubuntu-24 .04
23
23
timeout-minutes :
24
24
60
25
25
container :
@@ -28,24 +28,24 @@ jobs:
28
28
strategy :
29
29
matrix :
30
30
include :
31
- - compiler : ghc-9.12.0.20241128
31
+ - compiler : ghc-9.12.2
32
32
compilerKind : ghc
33
- compilerVersion : 9.12.0.20241128
34
- setup-method : ghcup-prerelease
33
+ compilerVersion : 9.12.2
34
+ setup-method : ghcup
35
35
allow-failure : false
36
- - compiler : ghc-9.10.1
36
+ - compiler : ghc-9.10.2
37
37
compilerKind : ghc
38
- compilerVersion : 9.10.1
38
+ compilerVersion : 9.10.2
39
39
setup-method : ghcup
40
40
allow-failure : false
41
41
- compiler : ghc-9.8.4
42
42
compilerKind : ghc
43
43
compilerVersion : 9.8.4
44
44
setup-method : ghcup
45
45
allow-failure : false
46
- - compiler : ghc-9.6.6
46
+ - compiler : ghc-9.6.7
47
47
compilerKind : ghc
48
- compilerVersion : 9.6.6
48
+ compilerVersion : 9.6.7
49
49
setup-method : ghcup
50
50
allow-failure : false
51
51
- compiler : ghc-8.10.7
@@ -62,12 +62,12 @@ jobs:
62
62
- name : Install GHCup
63
63
run : |
64
64
mkdir -p "$HOME/.ghcup/bin"
65
- curl -sL https://downloads.haskell.org/ghcup/0.1.30.0 /x86_64-linux-ghcup-0.1.30.0 > "$HOME/.ghcup/bin/ghcup"
65
+ curl -sL https://downloads.haskell.org/ghcup/0.1.50.1 /x86_64-linux-ghcup-0.1.50.1 > "$HOME/.ghcup/bin/ghcup"
66
66
chmod a+x "$HOME/.ghcup/bin/ghcup"
67
67
- name : Install cabal-install
68
68
run : |
69
- "$HOME/.ghcup/bin/ghcup" install cabal 3.12.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
70
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
69
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.14.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
70
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.14.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
71
71
- name : Install GHC (GHCup)
72
72
if : matrix.setup-method == 'ghcup'
73
73
run : |
82
82
HCKIND : ${{ matrix.compilerKind }}
83
83
HCNAME : ${{ matrix.compiler }}
84
84
HCVER : ${{ matrix.compilerVersion }}
85
- - name : Install GHC (GHCup prerelease)
86
- if : matrix.setup-method == 'ghcup-prerelease'
87
- run : |
88
- "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
89
- "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
90
- HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
91
- HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
92
- HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
93
- echo "HC=$HC" >> "$GITHUB_ENV"
94
- echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
95
- echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
96
- env :
97
- HCKIND : ${{ matrix.compilerKind }}
98
- HCNAME : ${{ matrix.compiler }}
99
- HCVER : ${{ matrix.compilerVersion }}
100
85
- name : Set PATH and environment variables
101
86
run : |
102
87
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
107
92
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
108
93
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
109
94
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
110
- if [ $((HCNUMVER >= 91200)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE= false" >> "$GITHUB_ENV" ; fi
95
+ echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
111
96
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
112
97
env :
113
98
HCKIND : ${{ matrix.compilerKind }}
@@ -135,18 +120,6 @@ jobs:
135
120
repository hackage.haskell.org
136
121
url: http://hackage.haskell.org/
137
122
EOF
138
- if $HEADHACKAGE; then
139
- cat >> $CABAL_CONFIG <<EOF
140
- repository head.hackage.ghc.haskell.org
141
- url: https://ghc.gitlab.haskell.org/head.hackage/
142
- secure: True
143
- root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
144
- 26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
145
- f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
146
- key-threshold: 3
147
- active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
148
- EOF
149
- fi
150
123
cat >> $CABAL_CONFIG <<EOF
151
124
program-default-options
152
125
ghc-options: $GHCJOBS +RTS -M3G -RTS
@@ -198,9 +171,6 @@ jobs:
198
171
echo " ghc-options: -Werror=missing-methods" >> cabal.project
199
172
cat >> cabal.project <<EOF
200
173
EOF
201
- if $HEADHACKAGE; then
202
- echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
203
- fi
204
174
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(system-linux-proc)$/; }' >> cabal.project.local
205
175
cat cabal.project
206
176
cat cabal.project.local
0 commit comments