28
28
ghc : ' 8.6'
29
29
steps :
30
30
- uses : actions/checkout@v4
31
+
32
+ - name : Install GHCup
33
+ uses : haskell/ghcup-setup@v1
34
+
31
35
- name : Setup toolchain
32
36
run : |
33
- curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_INSTALL_NO_STACK=1 BOOTSTRAP_HASKELL_GHC_VERSION=${{ matrix.ghc }} BOOTSTRAP_HASKELL_ADJUST_BASHRC=yes sh
37
+ ghcup install ghc --set ${{ matrix.ghc }}
38
+ ghcup install cabal --set latest
34
39
35
40
- if : runner.os == 'macOS'
36
41
name : Install system deps via brew
46
51
restore-keys : ${{ runner.os }}-${{ matrix.ghc }}-
47
52
- name : Build
48
53
run : |
49
- . ~/.ghcup/env
50
54
ghc --version
51
55
cabal --version
52
56
cabal update
@@ -58,22 +62,29 @@ jobs:
58
62
cabal test all --test-show-details=direct
59
63
- name : Haddock
60
64
run : |
61
- . ~/.ghcup/env
62
65
cabal haddock --disable-documentation
63
66
64
67
redhat-ubi9 :
65
68
runs-on : ubuntu-24.04
66
69
container :
67
70
image : redhat/ubi9:latest
68
71
steps :
69
- - name : Install
72
+ - name : Install prerequisites
70
73
run : |
71
74
yum install -y gcc gmp gmp-devel make ncurses xz perl autoconf
72
- curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_GHC_VERSION=9.4.8 sh
75
+
76
+ - name : Install GHCup
77
+ uses : haskell/ghcup-setup@v1
78
+
79
+ - name : Setup toolchain
80
+ run : |
81
+ ghcup install ghc --set latest
82
+ ghcup install cabal --set latest
83
+
73
84
- uses : actions/checkout@v4
85
+
74
86
- name : Test
75
87
run : |
76
- source ~/.ghcup/env
77
88
cabal --version
78
89
cabal update
79
90
autoreconf --version
@@ -85,14 +96,21 @@ jobs:
85
96
container :
86
97
image : fedora:37
87
98
steps :
88
- - name : Install
99
+ - name : Install prerequisites
89
100
run : |
90
101
dnf install -y gcc gmp gmp-devel make ncurses ncurses-compat-libs xz perl autoconf
91
- curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 sh
102
+
103
+ - name : Install GHCup
104
+ uses : haskell/ghcup-setup@v1
105
+
106
+ - name : Setup toolchain
107
+ run : |
108
+ ghcup install ghc --set latest
109
+ ghcup install cabal --set latest
110
+
92
111
- uses : actions/checkout@v4
93
112
- name : Test
94
113
run : |
95
- source ~/.ghcup/env
96
114
cabal --version
97
115
cabal update
98
116
autoreconf --version
@@ -102,23 +120,14 @@ jobs:
102
120
103
121
i386 :
104
122
runs-on : ubuntu-latest
105
- container :
106
- image : i386/ubuntu:bionic
107
123
steps :
108
- - name : Install
109
- run : |
110
- apt-get update -y
111
- apt-get install -y autoconf build-essential zlib1g-dev libgmp-dev curl
112
- curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_INSTALL_NO_STACK=1 sh
113
- - uses : actions/checkout@v1
114
- - name : Test
115
- run : |
116
- source ~/.ghcup/env
117
- cabal --version
118
- cabal update
119
- autoreconf --version
120
- autoreconf -i
121
- cabal v2-test --constraint 'optparse-applicative -process' --constraint 'QuickCheck +old-random' --constraint 'tasty -unix' all
124
+ - name : Checkout code
125
+ uses : actions/checkout@v4
126
+
127
+ - name : Run build (32 bit linux)
128
+ uses : docker://hasufell/i386-alpine-haskell:3.12
129
+ with :
130
+ args : sh -c "apk update && apk add --no-cache autoconf automake make && cabal update && autoreconf --version && autoreconf -i && cabal v2-test --constraint 'optparse-applicative -process' --constraint 'QuickCheck +old-random' --constraint 'tasty -unix' all"
122
131
123
132
arm :
124
133
runs-on : [self-hosted, Linux, ARM64]
@@ -161,14 +170,25 @@ jobs:
161
170
- name : Checkout code
162
171
uses : actions/checkout@v4
163
172
173
+ - name : Install prerequisites
174
+ run : |
175
+ sudo pkg install -y curl gcc gmp gmake ncurses perl5 libffi libiconv git bash misc/compat10x misc/compat11x misc/compat12x gmake autoconf
176
+
177
+ - name : Install GHCup
178
+ uses : haskell/ghcup-setup@v1
179
+
180
+ - name : Setup toolchain
181
+ run : |
182
+ ghcup install ghc --set ${{ matrix.ghc }}
183
+ ghcup install cabal --set latest
184
+
164
185
- name : Run build
165
186
run : |
166
- pkg install -y curl gcc gmp gmake ncurses perl5 libffi libiconv git bash misc/compat10x misc/compat11x misc/compat12x gmake autoconf
167
- . .github/scripts/env.sh
168
- curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_INSTALL_NO_STACK=1 BOOTSTRAP_HASKELL_GHC_VERSION=${{ matrix.ghc }} BOOTSTRAP_HASKELL_ADJUST_BASHRC=yes sh
169
187
autoreconf --version
170
188
autoreconf -i
189
+ cabal update
171
190
cabal sdist -z -o .
172
191
cabal get unix-*.tar.gz
173
192
cd unix-*/
174
193
cabal test all --test-show-details=direct
194
+
0 commit comments