Skip to content

Commit 2721cd7

Browse files
committed
Regenerate haskell-ci
1 parent e622a88 commit 2721cd7

File tree

1 file changed

+29
-43
lines changed

1 file changed

+29
-43
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 29 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#
99
# For more information, see https://github.com/haskell-CI/haskell-ci
1010
#
11-
# version: 0.17.20231010
11+
# version: 0.19.20240708
1212
#
13-
# REGENDATA ("0.17.20231010",["github","cabal.project"])
13+
# REGENDATA ("0.19.20240708",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -23,11 +23,16 @@ jobs:
2323
timeout-minutes:
2424
60
2525
container:
26-
image: buildpack-deps:bionic
26+
image: buildpack-deps:jammy
2727
continue-on-error: ${{ matrix.allow-failure }}
2828
strategy:
2929
matrix:
3030
include:
31+
- compiler: ghc-9.10.1
32+
compilerKind: ghc
33+
compilerVersion: 9.10.1
34+
setup-method: ghcup
35+
allow-failure: false
3136
- compiler: ghc-9.8.1
3237
compilerKind: ghc
3338
compilerVersion: 9.8.1
@@ -61,44 +66,34 @@ jobs:
6166
- compiler: ghc-8.8.4
6267
compilerKind: ghc
6368
compilerVersion: 8.8.4
64-
setup-method: hvr-ppa
69+
setup-method: ghcup
6570
allow-failure: false
6671
- compiler: ghc-8.6.5
6772
compilerKind: ghc
6873
compilerVersion: 8.6.5
69-
setup-method: hvr-ppa
74+
setup-method: ghcup
7075
allow-failure: false
7176
- compiler: ghc-8.4.4
7277
compilerKind: ghc
7378
compilerVersion: 8.4.4
74-
setup-method: hvr-ppa
79+
setup-method: ghcup
7580
allow-failure: false
7681
- compiler: ghc-8.2.2
7782
compilerKind: ghc
7883
compilerVersion: 8.2.2
79-
setup-method: hvr-ppa
84+
setup-method: ghcup
8085
allow-failure: false
8186
fail-fast: false
8287
steps:
8388
- name: apt
8489
run: |
8590
apt-get update
86-
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
87-
if [ "${{ matrix.setup-method }}" = ghcup ]; then
88-
mkdir -p "$HOME/.ghcup/bin"
89-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
90-
chmod a+x "$HOME/.ghcup/bin/ghcup"
91-
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
92-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
93-
else
94-
apt-add-repository -y 'ppa:hvr/ghc'
95-
apt-get update
96-
apt-get install -y "$HCNAME"
97-
mkdir -p "$HOME/.ghcup/bin"
98-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
99-
chmod a+x "$HOME/.ghcup/bin/ghcup"
100-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
101-
fi
91+
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
92+
mkdir -p "$HOME/.ghcup/bin"
93+
curl -sL https://downloads.haskell.org/ghcup/0.1.30.0/x86_64-linux-ghcup-0.1.30.0 > "$HOME/.ghcup/bin/ghcup"
94+
chmod a+x "$HOME/.ghcup/bin/ghcup"
95+
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
96+
"$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
10297
env:
10398
HCKIND: ${{ matrix.compilerKind }}
10499
HCNAME: ${{ matrix.compiler }}
@@ -110,22 +105,13 @@ jobs:
110105
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
111106
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
112107
HCDIR=/opt/$HCKIND/$HCVER
113-
if [ "${{ matrix.setup-method }}" = ghcup ]; then
114-
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
115-
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
116-
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
117-
echo "HC=$HC" >> "$GITHUB_ENV"
118-
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
119-
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
120-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
121-
else
122-
HC=$HCDIR/bin/$HCKIND
123-
echo "HC=$HC" >> "$GITHUB_ENV"
124-
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
125-
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
126-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
127-
fi
128-
108+
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
109+
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
110+
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
111+
echo "HC=$HC" >> "$GITHUB_ENV"
112+
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
113+
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
114+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
129115
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
130116
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
131117
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -182,7 +168,7 @@ jobs:
182168
chmod a+x $HOME/.cabal/bin/cabal-plan
183169
cabal-plan --version
184170
- name: checkout
185-
uses: actions/checkout@v3
171+
uses: actions/checkout@v4
186172
with:
187173
path: source
188174
- name: initial cabal.project for sdist
@@ -210,15 +196,15 @@ jobs:
210196
echo " ghc-options: -Werror=missing-methods" >> cabal.project
211197
cat >> cabal.project <<EOF
212198
EOF
213-
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(haskell-src-meta)$/; }' >> cabal.project.local
199+
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(haskell-src-meta)$/; }' >> cabal.project.local
214200
cat cabal.project
215201
cat cabal.project.local
216202
- name: dump install plan
217203
run: |
218204
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
219205
cabal-plan
220206
- name: restore cache
221-
uses: actions/cache/restore@v3
207+
uses: actions/cache/restore@v4
222208
with:
223209
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
224210
path: ~/.cabal/store
@@ -248,7 +234,7 @@ jobs:
248234
rm -f cabal.project.local
249235
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
250236
- name: save cache
251-
uses: actions/cache/save@v3
237+
uses: actions/cache/save@v4
252238
if: always()
253239
with:
254240
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}

0 commit comments

Comments
 (0)