@@ -30,22 +30,18 @@ jobs:
30
30
ghc : ' 9.6'
31
31
cabal : ' 3.8.1.0'
32
32
steps :
33
- - uses : actions/checkout@v3
34
-
35
- - uses : haskell/ghcup-setup@v1
33
+ - uses : actions/checkout@v4
36
34
37
35
- name : Install dependencies (Ubuntu)
38
36
if : runner.os == 'Linux'
39
37
run : |
40
38
sudo apt-get -y update
41
39
sudo apt-get -y install libtinfo6 libncurses6
42
40
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
41
+ - uses : haskell/ghcup-setup@v1
42
+ with :
43
+ ghc : ${{ matrix.ghc }}
44
+ cabal : ${{ matrix.cabal }}
49
45
50
46
- name : Build
51
47
run : |
@@ -122,6 +118,7 @@ jobs:
122
118
runs-on : ${{ matrix.os }}
123
119
env :
124
120
MACOSX_DEPLOYMENT_TARGET : 10.13
121
+ HOMEBREW_CHANGE_ARCH_TO_ARM : 1
125
122
strategy :
126
123
fail-fast : false
127
124
matrix :
@@ -136,25 +133,26 @@ jobs:
136
133
- name : Checkout code
137
134
uses : actions/checkout@v4
138
135
136
+ - name : Install prerequisites
137
+ run : |
138
+ bash .github/scripts/brew.sh git coreutils llvm@13 autoconf automake
139
+ echo PATH="$HOME/.brew/bin:$HOME/.brew/sbin:$HOME/.brew/opt/llvm@13/bin:$PATH" >> "$GITHUB_ENV"
140
+ echo CC="$HOME/.brew/opt/llvm@13/bin/clang" >> "$GITHUB_ENV"
141
+ echo CXX="$HOME/.brew/opt/llvm@13/bin/clang++" >> "$GITHUB_ENV"
142
+ echo LD=ld >> "$GITHUB_ENV"
143
+ echo AR="$HOME/.brew/opt/llvm@13/bin/llvm-ar" >> "$GITHUB_ENV"
144
+ echo RANLIB="$HOME/.brew/opt/llvm@13/bin/llvm-ranlib" >> "$GITHUB_ENV"
145
+
139
146
- uses : haskell/ghcup-setup@v1
147
+ with :
148
+ ghc : ${{ matrix.ghc }}
149
+ cabal : ${{ matrix.cabal }}
140
150
141
151
- name : Run build
142
152
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
153
cabal update
154
154
cabal test
155
155
cabal bench
156
- env :
157
- HOMEBREW_CHANGE_ARCH_TO_ARM : 1
158
156
159
157
freebsd :
160
158
runs-on : ${{ matrix.os }}
@@ -170,14 +168,17 @@ jobs:
170
168
- name : Checkout code
171
169
uses : actions/checkout@v4
172
170
171
+ - name : Install prerequisites
172
+ run : |
173
+ sudo pkg install -y curl gcc gmp gmake ncurses perl5 libffi libiconv git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14
174
+
173
175
- uses : haskell/ghcup-setup@v1
176
+ with :
177
+ ghc : ${{ matrix.ghc }}
178
+ cabal : ${{ matrix.cabal }}
174
179
175
180
- name : Run build
176
181
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
182
cabal update
182
183
cabal test
183
184
cabal bench
0 commit comments