Skip to content

Commit 2609d46

Browse files
authored
Merge pull request #36 from andreasabel/random-1.3
v 2.7.0.16 revision 4: allow random-1.3, bump CI to GHC 9.12
2 parents e4fe22a + cfedd90 commit 2609d46

File tree

2 files changed

+42
-30
lines changed

2 files changed

+42
-30
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 34 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
#
77
# haskell-ci regenerate
88
#
9-
# For more information, see https://github.com/andreasabel/haskell-ci
9+
# For more information, see https://github.com/haskell-CI/haskell-ci
1010
#
11-
# version: 0.19.20240703
11+
# version: 0.19.20250506
1212
#
13-
# REGENDATA ("0.19.20240703",["github","GLUT.cabal"])
13+
# REGENDATA ("0.19.20250506",["github","GLUT.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-20.04
26+
runs-on: ubuntu-24.04
2727
timeout-minutes:
2828
60
2929
container:
@@ -32,19 +32,24 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35-
- compiler: ghc-9.10.1
35+
- compiler: ghc-9.12.2
3636
compilerKind: ghc
37-
compilerVersion: 9.10.1
37+
compilerVersion: 9.12.2
3838
setup-method: ghcup
3939
allow-failure: false
40-
- compiler: ghc-9.8.2
40+
- compiler: ghc-9.10.2
4141
compilerKind: ghc
42-
compilerVersion: 9.8.2
42+
compilerVersion: 9.10.2
4343
setup-method: ghcup
4444
allow-failure: false
45-
- compiler: ghc-9.6.6
45+
- compiler: ghc-9.8.4
4646
compilerKind: ghc
47-
compilerVersion: 9.6.6
47+
compilerVersion: 9.8.4
48+
setup-method: ghcup
49+
allow-failure: false
50+
- compiler: ghc-9.6.7
51+
compilerKind: ghc
52+
compilerVersion: 9.6.7
4853
setup-method: ghcup
4954
allow-failure: false
5055
- compiler: ghc-9.4.8
@@ -94,17 +99,30 @@ jobs:
9499
allow-failure: false
95100
fail-fast: false
96101
steps:
97-
- name: apt
102+
- name: apt-get install
98103
run: |
99104
apt-get update
100105
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
106+
apt-get install -y freeglut3-dev
107+
- name: Install GHCup
108+
run: |
101109
mkdir -p "$HOME/.ghcup/bin"
102-
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
110+
curl -sL https://downloads.haskell.org/ghcup/0.1.50.1/x86_64-linux-ghcup-0.1.50.1 > "$HOME/.ghcup/bin/ghcup"
103111
chmod a+x "$HOME/.ghcup/bin/ghcup"
112+
- name: Install cabal-install
113+
run: |
114+
"$HOME/.ghcup/bin/ghcup" install cabal 3.14.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
115+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.14.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
116+
- name: Install GHC (GHCup)
117+
if: matrix.setup-method == 'ghcup'
118+
run: |
104119
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
105-
"$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
106-
apt-get update
107-
apt-get install -y freeglut3-dev
120+
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
121+
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
122+
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
123+
echo "HC=$HC" >> "$GITHUB_ENV"
124+
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
125+
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
108126
env:
109127
HCKIND: ${{ matrix.compilerKind }}
110128
HCNAME: ${{ matrix.compiler }}
@@ -115,21 +133,12 @@ jobs:
115133
echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
116134
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
117135
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
118-
HCDIR=/opt/$HCKIND/$HCVER
119-
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
120-
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
121-
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
122-
echo "HC=$HC" >> "$GITHUB_ENV"
123-
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
124-
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
125-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
126136
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
127137
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
128138
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
129139
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
130140
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
131141
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
132-
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
133142
env:
134143
HCKIND: ${{ matrix.compilerKind }}
135144
HCNAME: ${{ matrix.compiler }}
@@ -242,8 +251,8 @@ jobs:
242251
rm -f cabal.project.local
243252
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
244253
- name: save cache
245-
uses: actions/cache/save@v4
246254
if: always()
255+
uses: actions/cache/save@v4
247256
with:
248257
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
249258
path: ~/.cabal/store

GLUT.cabal

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
cabal-version: >= 1.10
22
name: GLUT
33
version: 2.7.0.16
4+
-- Delete the x-revision field when bumping the version!
5+
x-revision: 4
46
synopsis: A binding for the OpenGL Utility Toolkit
57
description:
68
A Haskell binding for the OpenGL Utility Toolkit, a window system independent
@@ -17,9 +19,10 @@ maintainer: Sven Panne <[email protected]>, Jason Dagit <[email protected]>
1719
category: Graphics
1820
build-type: Simple
1921
tested-with:
20-
GHC == 9.10.1
21-
GHC == 9.8.2
22-
GHC == 9.6.6
22+
GHC == 9.12.2
23+
GHC == 9.10.2
24+
GHC == 9.8.4
25+
GHC == 9.6.7
2326
GHC == 9.4.8
2427
GHC == 9.2.8
2528
GHC == 9.0.2
@@ -249,7 +252,7 @@ executable Misc-Triangulate
249252
if !flag(BuildExamples)
250253
buildable: False
251254
main-is: Triangulate.hs
252-
build-depends: base >= 3 && < 5, random >= 1.0 && < 1.3, GLUT
255+
build-depends: base >= 3 && < 5, random >= 1.0 && < 1.4, GLUT
253256
hs-source-dirs: examples/Misc
254257
default-language: Haskell2010
255258
ghc-options: -Wall
@@ -668,7 +671,7 @@ executable RedBook4-PointP
668671
if !flag(BuildExamples)
669672
buildable: False
670673
main-is: PointP.hs
671-
build-depends: base >= 3 && < 5, random >= 1.0 && < 1.3, GLUT
674+
build-depends: base >= 3 && < 5, random >= 1.0 && < 1.4, GLUT
672675
hs-source-dirs: examples/RedBook4
673676
default-language: Haskell2010
674677
ghc-options: -Wall

0 commit comments

Comments
 (0)