6
6
#
7
7
# haskell-ci regenerate
8
8
#
9
- # For more information, see https://github.com/haskell-CI /haskell-ci
9
+ # For more information, see https://github.com/andreasabel /haskell-ci
10
10
#
11
- # version: 0.17.20240109
11
+ # version: 0.19.20240703
12
12
#
13
- # REGENDATA ("0.17.20240109 ",["github","OpenGLRaw.cabal","--distribution=focal","--submodules","--branches","master","--output=.github/workflows/haskell-ci.yml","--apt=freeglut3-dev"])
13
+ # REGENDATA ("0.19.20240703 ",["github","OpenGLRaw.cabal","--distribution=focal","--submodules","--branches","master","--output=.github/workflows/haskell-ci.yml","--apt=freeglut3-dev"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -32,14 +32,19 @@ jobs:
32
32
strategy :
33
33
matrix :
34
34
include :
35
- - compiler : ghc-9.8 .1
35
+ - compiler : ghc-9.10 .1
36
36
compilerKind : ghc
37
- compilerVersion : 9.8 .1
37
+ compilerVersion : 9.10 .1
38
38
setup-method : ghcup
39
39
allow-failure : false
40
- - compiler : ghc-9.6.4
40
+ - compiler : ghc-9.8.2
41
41
compilerKind : ghc
42
- compilerVersion : 9.6.4
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
43
48
setup-method : ghcup
44
49
allow-failure : false
45
50
- compiler : ghc-9.4.8
@@ -65,51 +70,41 @@ jobs:
65
70
- compiler : ghc-8.8.4
66
71
compilerKind : ghc
67
72
compilerVersion : 8.8.4
68
- setup-method : hvr-ppa
73
+ setup-method : ghcup
69
74
allow-failure : false
70
75
- compiler : ghc-8.6.5
71
76
compilerKind : ghc
72
77
compilerVersion : 8.6.5
73
- setup-method : hvr-ppa
78
+ setup-method : ghcup
74
79
allow-failure : false
75
80
- compiler : ghc-8.4.4
76
81
compilerKind : ghc
77
82
compilerVersion : 8.4.4
78
- setup-method : hvr-ppa
83
+ setup-method : ghcup
79
84
allow-failure : false
80
85
- compiler : ghc-8.2.2
81
86
compilerKind : ghc
82
87
compilerVersion : 8.2.2
83
- setup-method : hvr-ppa
88
+ setup-method : ghcup
84
89
allow-failure : false
85
90
- compiler : ghc-8.0.2
86
91
compilerKind : ghc
87
92
compilerVersion : 8.0.2
88
- setup-method : hvr-ppa
93
+ setup-method : ghcup
89
94
allow-failure : false
90
95
fail-fast : false
91
96
steps :
92
97
- name : apt
93
98
run : |
94
99
apt-get update
95
- apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
96
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
97
- mkdir -p "$HOME/.ghcup/bin"
98
- curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
99
- chmod a+x "$HOME/.ghcup/bin/ghcup"
100
- "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
101
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
102
- apt-get update
103
- apt-get install -y freeglut3-dev
104
- else
105
- apt-add-repository -y 'ppa:hvr/ghc'
106
- apt-get update
107
- apt-get install -y "$HCNAME" freeglut3-dev
108
- mkdir -p "$HOME/.ghcup/bin"
109
- curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
110
- chmod a+x "$HOME/.ghcup/bin/ghcup"
111
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
112
- fi
100
+ apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
101
+ 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"
103
+ chmod a+x "$HOME/.ghcup/bin/ghcup"
104
+ "$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
113
108
env :
114
109
HCKIND : ${{ matrix.compilerKind }}
115
110
HCNAME : ${{ matrix.compiler }}
@@ -121,22 +116,13 @@ jobs:
121
116
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
122
117
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
123
118
HCDIR=/opt/$HCKIND/$HCVER
124
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
125
- HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
126
- HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
127
- HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
128
- echo "HC=$HC" >> "$GITHUB_ENV"
129
- echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
130
- echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
131
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
132
- else
133
- HC=$HCDIR/bin/$HCKIND
134
- echo "HC=$HC" >> "$GITHUB_ENV"
135
- echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
136
- echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
137
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
138
- fi
139
-
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"
140
126
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
141
127
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
142
128
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -222,7 +208,7 @@ jobs:
222
208
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
223
209
cat >> cabal.project <<EOF
224
210
EOF
225
- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(OpenGLRaw)$/; }' >> cabal.project.local
211
+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any. $_ installed\n" unless /^(OpenGLRaw)$/; }' >> cabal.project.local
226
212
cat cabal.project
227
213
cat cabal.project.local
228
214
- name : dump install plan
0 commit comments