@@ -17,10 +17,10 @@ jobs:
17
17
ghc : ['8.6', '8.8', '8.10', '9.0', '9.2', '9.4', '9.6', '9.8']
18
18
cabal : ['3.8.1.0']
19
19
include :
20
- - os : macOS-12
20
+ - os : macOS-13
21
21
ghc : ' 9.4'
22
22
cabal : ' 3.8.1.0'
23
- - os : macOS-12
23
+ - os : macOS-13
24
24
ghc : ' 9.6'
25
25
cabal : ' 3.8.1.0'
26
26
- os : windows-latest
@@ -36,13 +36,16 @@ jobs:
36
36
if : runner.os == 'Linux'
37
37
run : |
38
38
sudo apt-get -y update
39
- sudo apt-get -y install libtinfo5 libtinfo6 libncurses5 libncurses6
39
+ sudo apt-get -y install libtinfo6 libncurses6
40
+
41
+ - name : Install GHCup
42
+ uses : haskell/ghcup-setup@v1
40
43
41
44
- name : Install ghc/cabal
42
45
run : |
43
46
set -eux
44
47
ghcup install ghc --set ${{ matrix.ghc }}
45
- ghcup install cabal ${{ matrix.cabal }}
48
+ ghcup install cabal --set ${{ matrix.cabal }}
46
49
shell : bash
47
50
48
51
- name : Build
@@ -59,21 +62,14 @@ jobs:
59
62
60
63
i386 :
61
64
runs-on : ubuntu-latest
62
- container :
63
- image : i386/ubuntu:bionic
64
65
steps :
65
- - name : Install
66
- run : |
67
- apt-get update -y
68
- apt-get install -y autoconf build-essential zlib1g-dev libgmp-dev curl libncurses5 libtinfo5 libncurses5-dev libtinfo-dev
69
- curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_INSTALL_NO_STACK=1 sh
70
- - uses : actions/checkout@v1
71
- - name : Test
72
- run : |
73
- . ~/.ghcup/env
74
- cabal update
75
- cabal test
76
- cabal bench
66
+ - name : Checkout code
67
+ uses : actions/checkout@v4
68
+
69
+ - name : Run build (32 bit linux)
70
+ uses : docker://hasufell/i386-alpine-haskell:3.12
71
+ with :
72
+ args : sh -c "cabal update && cabal test && cabal bench"
77
73
78
74
# We use github.com/haskell self-hosted runners for ARM testing.
79
75
# If they become unavailable in future, put ['armv7', 'aarch64']
@@ -123,6 +119,9 @@ jobs:
123
119
- name : Checkout code
124
120
uses : actions/checkout@v4
125
121
122
+ - name : Install GHCup
123
+ uses : haskell/ghcup-setup@v1
124
+
126
125
- name : Run build
127
126
run : |
128
127
bash .github/scripts/brew.sh git coreutils llvm@13 autoconf automake
@@ -132,8 +131,7 @@ jobs:
132
131
export LD=ld
133
132
export AR="$HOME/.brew/opt/llvm@13/bin/llvm-ar"
134
133
export RANLIB="$HOME/.brew/opt/llvm@13/bin/llvm-ranlib"
135
- . .github/scripts/env.sh
136
- 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
134
+ cabal update
137
135
cabal test
138
136
cabal bench
139
137
env :
@@ -153,11 +151,16 @@ jobs:
153
151
- name : Checkout code
154
152
uses : actions/checkout@v4
155
153
154
+ - name : Install prerequisites
155
+ run : |
156
+ sudo pkg install -y curl gcc gmp gmake ncurses perl5 libffi libiconv git bash misc/compat10x misc/compat11x misc/compat12x gmake autoconf
157
+
158
+ - name : Install GHCup
159
+ uses : haskell/ghcup-setup@v1
160
+
156
161
- name : Run build
157
162
run : |
158
- pkg install -y curl gcc gmp gmake ncurses perl5 libffi libiconv git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14
159
- . .github/scripts/env.sh
160
- 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
163
+ cabal update
161
164
cabal test
162
165
cabal bench
163
166
@@ -174,7 +177,7 @@ jobs:
174
177
arch : ['s390x', 'ppc64le']
175
178
steps :
176
179
- uses : actions/checkout@v4
177
- - uses : uraimo/run-on-arch-action@v2.7.2
180
+ - uses : uraimo/run-on-arch-action@v2.8.1
178
181
timeout-minutes : 60
179
182
with :
180
183
arch : ${{ matrix.arch }}
0 commit comments