@@ -15,37 +15,28 @@ jobs:
15
15
matrix :
16
16
os : [ubuntu-latest]
17
17
ghc : ['8.6', '8.8', '8.10', '9.0', '9.2', '9.4', '9.6', '9.8']
18
- cabal : ['3.8.1.0']
19
18
include :
20
19
- os : macos-13
21
20
ghc : ' 9.4'
22
- cabal : ' 3.8.1.0'
23
21
- os : macos-13
24
22
ghc : ' 9.6'
25
- cabal : ' 3.8.1.0'
26
23
- os : windows-latest
27
24
ghc : ' 9.4'
28
- cabal : ' 3.8.1.0'
29
25
- os : windows-latest
30
26
ghc : ' 9.6'
31
- cabal : ' 3.8.1.0'
32
27
steps :
33
- - uses : actions/checkout@v3
34
-
35
- - uses : haskell/ghcup-setup@v1
28
+ - uses : actions/checkout@v4
36
29
37
30
- name : Install dependencies (Ubuntu)
38
31
if : runner.os == 'Linux'
39
32
run : |
40
33
sudo apt-get -y update
41
34
sudo apt-get -y install libtinfo6 libncurses6
42
35
43
- - name : Install ghc/cabal
44
- run : |
45
- set -eux
46
- ghcup install ghc --set ${{ matrix.ghc }}
47
- ghcup install cabal ${{ matrix.cabal }}
48
- shell : bash
36
+ - uses : haskell/ghcup-setup@v1
37
+ with :
38
+ ghc : ${{ matrix.ghc }}
39
+ cabal : latest
49
40
50
41
- name : Build
51
42
run : |
@@ -122,6 +113,7 @@ jobs:
122
113
runs-on : ${{ matrix.os }}
123
114
env :
124
115
MACOSX_DEPLOYMENT_TARGET : 10.13
116
+ HOMEBREW_CHANGE_ARCH_TO_ARM : 1
125
117
strategy :
126
118
fail-fast : false
127
119
matrix :
@@ -136,25 +128,25 @@ jobs:
136
128
- name : Checkout code
137
129
uses : actions/checkout@v4
138
130
131
+ - name : Install prerequisites
132
+ run : |
133
+ bash .github/scripts/brew.sh git coreutils llvm@13 autoconf automake
134
+ echo PATH="$HOME/.brew/bin:$HOME/.brew/sbin:$HOME/.brew/opt/llvm@13/bin:$PATH" >> "$GITHUB_ENV"
135
+ echo CC="$HOME/.brew/opt/llvm@13/bin/clang" >> "$GITHUB_ENV"
136
+ echo CXX="$HOME/.brew/opt/llvm@13/bin/clang++" >> "$GITHUB_ENV"
137
+ echo LD=ld >> "$GITHUB_ENV"
138
+ echo AR="$HOME/.brew/opt/llvm@13/bin/llvm-ar" >> "$GITHUB_ENV"
139
+ echo RANLIB="$HOME/.brew/opt/llvm@13/bin/llvm-ranlib" >> "$GITHUB_ENV"
140
+
139
141
- uses : haskell/ghcup-setup@v1
142
+ with :
143
+ ghc : ${{ matrix.ghc }}
144
+ cabal : latest
140
145
141
146
- name : Run build
142
147
run : |
143
- bash .github/scripts/brew.sh git coreutils llvm@13 autoconf automake
144
- export PATH="$HOME/.brew/bin:$HOME/.brew/sbin:$HOME/.brew/opt/llvm@13/bin:$PATH"
145
- export CC="$HOME/.brew/opt/llvm@13/bin/clang"
146
- export CXX="$HOME/.brew/opt/llvm@13/bin/clang++"
147
- export LD=ld
148
- export AR="$HOME/.brew/opt/llvm@13/bin/llvm-ar"
149
- export RANLIB="$HOME/.brew/opt/llvm@13/bin/llvm-ranlib"
150
- . .github/scripts/env.sh
151
- ghcup install ghc --set ${{ matrix.ghc }}
152
- ghcup install cabal --set latest
153
148
cabal update
154
149
cabal test
155
- cabal bench
156
- env :
157
- HOMEBREW_CHANGE_ARCH_TO_ARM : 1
158
150
159
151
freebsd :
160
152
runs-on : ${{ matrix.os }}
@@ -170,14 +162,17 @@ jobs:
170
162
- name : Checkout code
171
163
uses : actions/checkout@v4
172
164
165
+ - name : Install prerequisites
166
+ run : |
167
+ sudo pkg install -y curl gcc gmp gmake ncurses perl5 libffi libiconv git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14
168
+
173
169
- uses : haskell/ghcup-setup@v1
170
+ with :
171
+ ghc : ${{ matrix.ghc }}
172
+ cabal : latest
174
173
175
174
- name : Run build
176
175
run : |
177
- sudo pkg install -y curl gcc gmp gmake ncurses perl5 libffi libiconv git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14
178
- . .github/scripts/env.sh
179
- ghcup install ghc --set ${{ matrix.ghc }}
180
- ghcup install cabal --set recommended
181
176
cabal update
182
177
cabal test
183
178
cabal bench
0 commit comments