88#
99# For more information, see https://github.com/andreasabel/haskell-ci
1010#
11- # version: 0.17.20231002
11+ # version: 0.17.20231012
1212#
13- # REGENDATA ("0.17.20231002 ",["github","cassava.cabal"])
13+ # REGENDATA ("0.17.20231012 ",["github","cassava.cabal"])
1414#
1515name : Haskell-CI
1616on :
@@ -32,11 +32,11 @@ jobs:
3232 strategy :
3333 matrix :
3434 include :
35- - compiler : ghc-9.8.0.20230929
35+ - compiler : ghc-9.8.1
3636 compilerKind : ghc
37- compilerVersion : 9.8.0.20230929
37+ compilerVersion : 9.8.1
3838 setup-method : ghcup
39- allow-failure : true
39+ allow-failure : false
4040 - compiler : ghc-9.6.3
4141 compilerKind : ghc
4242 compilerVersion : 9.6.3
@@ -65,56 +65,40 @@ jobs:
6565 - compiler : ghc-8.8.4
6666 compilerKind : ghc
6767 compilerVersion : 8.8.4
68- setup-method : hvr-ppa
68+ setup-method : ghcup
6969 allow-failure : false
7070 - compiler : ghc-8.6.5
7171 compilerKind : ghc
7272 compilerVersion : 8.6.5
73- setup-method : hvr-ppa
73+ setup-method : ghcup
7474 allow-failure : false
7575 - compiler : ghc-8.4.4
7676 compilerKind : ghc
7777 compilerVersion : 8.4.4
78- setup-method : hvr-ppa
78+ setup-method : ghcup
7979 allow-failure : false
8080 - compiler : ghc-8.2.2
8181 compilerKind : ghc
8282 compilerVersion : 8.2.2
83- setup-method : hvr-ppa
83+ setup-method : ghcup
8484 allow-failure : false
8585 - compiler : ghc-8.0.2
8686 compilerKind : ghc
8787 compilerVersion : 8.0.2
88- setup-method : hvr-ppa
89- allow-failure : false
90- - compiler : ghc-7.10.3
91- compilerKind : ghc
92- compilerVersion : 7.10.3
93- setup-method : hvr-ppa
88+ setup-method : ghcup
9489 allow-failure : false
9590 fail-fast : false
9691 steps :
9792 - name : apt
9893 run : |
9994 apt-get update
100- apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
101- if [ "${{ matrix.setup-method }}" = ghcup ]; then
102- mkdir -p "$HOME/.ghcup/bin"
103- curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
104- chmod a+x "$HOME/.ghcup/bin/ghcup"
105- "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
106- "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
107- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
108- else
109- apt-add-repository -y 'ppa:hvr/ghc'
110- apt-get update
111- apt-get install -y "$HCNAME"
112- mkdir -p "$HOME/.ghcup/bin"
113- curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
114- chmod a+x "$HOME/.ghcup/bin/ghcup"
115- "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
116- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
117- fi
95+ apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
96+ mkdir -p "$HOME/.ghcup/bin"
97+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
98+ chmod a+x "$HOME/.ghcup/bin/ghcup"
99+ "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
100+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
101+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
118102 env :
119103 HCKIND : ${{ matrix.compilerKind }}
120104 HCNAME : ${{ matrix.compiler }}
@@ -126,27 +110,18 @@ jobs:
126110 echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
127111 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
128112 HCDIR=/opt/$HCKIND/$HCVER
129- if [ "${{ matrix.setup-method }}" = ghcup ]; then
130- HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
131- HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
132- HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
133- echo "HC=$HC" >> "$GITHUB_ENV"
134- echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
135- echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
136- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
137- else
138- HC=$HCDIR/bin/$HCKIND
139- echo "HC=$HC" >> "$GITHUB_ENV"
140- echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
141- echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
142- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
143- fi
144-
113+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
114+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
115+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
116+ echo "HC=$HC" >> "$GITHUB_ENV"
117+ echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
118+ echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
119+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
145120 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
146121 echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
147122 echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
148123 echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
149- if [ $((HCNUMVER >= 90800)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE= false" >> "$GITHUB_ENV" ; fi
124+ echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
150125 echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
151126 echo "GHCJSARITH=0" >> "$GITHUB_ENV"
152127 env :
@@ -175,18 +150,6 @@ jobs:
175150 repository hackage.haskell.org
176151 url: http://hackage.haskell.org/
177152 EOF
178- if $HEADHACKAGE; then
179- cat >> $CABAL_CONFIG <<EOF
180- repository head.hackage.ghc.haskell.org
181- url: https://ghc.gitlab.haskell.org/head.hackage/
182- secure: True
183- root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
184- 26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
185- f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
186- key-threshold: 3
187- active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
188- EOF
189- fi
190153 cat >> $CABAL_CONFIG <<EOF
191154 program-default-options
192155 ghc-options: $GHCJOBS +RTS -M3G -RTS
@@ -240,9 +203,6 @@ jobs:
240203 allow-newer: text
241204 allow-newer: containers
242205 EOF
243- if $HEADHACKAGE; then
244- echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
245- fi
246206 $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(cassava)$/; }' >> cabal.project.local
247207 cat cabal.project
248208 cat cabal.project.local
0 commit comments