Skip to content

Commit e4fe22a

Browse files
authored
Merge pull request #35 from andreasabel/ci-9.10
Allow containers-0.7, bump Haskell CI to GHC 9.10
2 parents 7e8b27d + d2abf19 commit e4fe22a

File tree

2 files changed

+22
-17
lines changed

2 files changed

+22
-17
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#
99
# For more information, see https://github.com/andreasabel/haskell-ci
1010
#
11-
# version: 0.17.20240106
11+
# version: 0.19.20240703
1212
#
13-
# REGENDATA ("0.17.20240106",["github","GLUT.cabal"])
13+
# REGENDATA ("0.19.20240703",["github","GLUT.cabal"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -23,23 +23,28 @@ on:
2323
jobs:
2424
linux:
2525
name: Haskell-CI - Linux - ${{ matrix.compiler }}
26-
runs-on: ubuntu-22.04
26+
runs-on: ubuntu-20.04
2727
timeout-minutes:
2828
60
2929
container:
30-
image: buildpack-deps:focal
30+
image: buildpack-deps:jammy
3131
continue-on-error: ${{ matrix.allow-failure }}
3232
strategy:
3333
matrix:
3434
include:
35-
- compiler: ghc-9.8.1
35+
- compiler: ghc-9.10.1
3636
compilerKind: ghc
37-
compilerVersion: 9.8.1
37+
compilerVersion: 9.10.1
3838
setup-method: ghcup
3939
allow-failure: false
40-
- compiler: ghc-9.6.3
40+
- compiler: ghc-9.8.2
4141
compilerKind: ghc
42-
compilerVersion: 9.6.3
42+
compilerVersion: 9.8.2
43+
setup-method: ghcup
44+
allow-failure: false
45+
- compiler: ghc-9.6.6
46+
compilerKind: ghc
47+
compilerVersion: 9.6.6
4348
setup-method: ghcup
4449
allow-failure: false
4550
- compiler: ghc-9.4.8
@@ -97,7 +102,7 @@ jobs:
97102
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
98103
chmod a+x "$HOME/.ghcup/bin/ghcup"
99104
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
100-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
105+
"$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
101106
apt-get update
102107
apt-get install -y freeglut3-dev
103108
env:
@@ -117,7 +122,7 @@ jobs:
117122
echo "HC=$HC" >> "$GITHUB_ENV"
118123
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
119124
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
120-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
125+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
121126
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
122127
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
123128
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -202,16 +207,15 @@ jobs:
202207
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
203208
cat >> cabal.project <<EOF
204209
EOF
205-
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(GLUT)$/; }' >> cabal.project.local
206-
echo "flags: +BuildExamples" >> cabal.project.local
210+
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(GLUT)$/; }' >> cabal.project.local
207211
cat cabal.project
208212
cat cabal.project.local
209213
- name: dump install plan
210214
run: |
211215
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
212216
cabal-plan
213217
- name: restore cache
214-
uses: actions/cache/restore@v3
218+
uses: actions/cache/restore@v4
215219
with:
216220
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
217221
path: ~/.cabal/store
@@ -238,7 +242,7 @@ jobs:
238242
rm -f cabal.project.local
239243
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
240244
- name: save cache
241-
uses: actions/cache/save@v3
245+
uses: actions/cache/save@v4
242246
if: always()
243247
with:
244248
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}

GLUT.cabal

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ maintainer: Sven Panne <svenpanne@gmail.com>, Jason Dagit <dagitj@gmail.com>
1717
category: Graphics
1818
build-type: Simple
1919
tested-with:
20-
GHC == 9.8.1
21-
GHC == 9.6.3
20+
GHC == 9.10.1
21+
GHC == 9.8.2
22+
GHC == 9.6.6
2223
GHC == 9.4.8
2324
GHC == 9.2.8
2425
GHC == 9.0.2
@@ -89,7 +90,7 @@ library
8990
build-depends:
9091
base >= 3 && < 5,
9192
array >= 0.3 && < 0.6,
92-
containers >= 0.3 && < 0.7,
93+
containers >= 0.3 && < 0.8,
9394
transformers >= 0.2 && < 0.7,
9495
StateVar >= 1.1 && < 1.3,
9596
OpenGL >= 2.12 && < 3.1

0 commit comments

Comments
 (0)