Skip to content

Commit d0dbc87

Browse files
authored
Merge pull request #98 from andreasabel/ci-9.10
Bump Haskell-CI to GHC 9.10
2 parents 5fb424b + 129fd94 commit d0dbc87

File tree

4 files changed

+17
-173
lines changed

4 files changed

+17
-173
lines changed

.github/workflows/haskell-ci.yml

+13-9
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.19.20240422
11+
# version: 0.19.20240703
1212
#
13-
# REGENDATA ("0.19.20240422",["github","OpenGL.cabal"])
13+
# REGENDATA ("0.19.20240703",["github","OpenGL.cabal"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -23,7 +23,7 @@ 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:
@@ -32,14 +32,19 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35+
- compiler: ghc-9.10.1
36+
compilerKind: ghc
37+
compilerVersion: 9.10.1
38+
setup-method: ghcup
39+
allow-failure: false
3540
- compiler: ghc-9.8.2
3641
compilerKind: ghc
3742
compilerVersion: 9.8.2
3843
setup-method: ghcup
3944
allow-failure: false
40-
- compiler: ghc-9.6.5
45+
- compiler: ghc-9.6.6
4146
compilerKind: ghc
42-
compilerVersion: 9.6.5
47+
compilerVersion: 9.6.6
4348
setup-method: ghcup
4449
allow-failure: false
4550
- compiler: ghc-9.4.8
@@ -96,9 +101,8 @@ jobs:
96101
mkdir -p "$HOME/.ghcup/bin"
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"
99-
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
100104
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
101-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.3.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
105+
"$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
102106
apt-get update
103107
apt-get install -y freeglut3-dev
104108
env:
@@ -118,7 +122,7 @@ jobs:
118122
echo "HC=$HC" >> "$GITHUB_ENV"
119123
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
120124
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
121-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.3.0 -vnormal+nowrap" >> "$GITHUB_ENV"
125+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
122126
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
123127
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
124128
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -203,7 +207,7 @@ jobs:
203207
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
204208
cat >> cabal.project <<EOF
205209
EOF
206-
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(OpenGL)$/; }' >> cabal.project.local
210+
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(OpenGL)$/; }' >> cabal.project.local
207211
cat cabal.project
208212
cat cabal.project.local
209213
- name: dump install plan

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*.swp
22
*~
33
/.cabal-sandbox
4-
/dist
4+
/dist/
5+
/dist-newstyle/
56
cabal.sandbox.config

.travis.yml

-162
This file was deleted.

OpenGL.cabal

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ category: Graphics
2323
build-type: Simple
2424

2525
tested-with:
26+
GHC == 9.10.1
2627
GHC == 9.8.2
27-
GHC == 9.6.5
28+
GHC == 9.6.6
2829
GHC == 9.4.8
2930
GHC == 9.2.8
3031
GHC == 9.0.2

0 commit comments

Comments
 (0)