@@ -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
@@ -32,11 +32,13 @@ jobs:
32
32
steps :
33
33
- uses : actions/checkout@v3
34
34
35
+ - uses : haskell/ghcup-setup@v1
36
+
35
37
- name : Install dependencies (Ubuntu)
36
38
if : runner.os == 'Linux'
37
39
run : |
38
40
sudo apt-get -y update
39
- sudo apt-get -y install libtinfo5 libtinfo6 libncurses5 libncurses6
41
+ sudo apt-get -y install libtinfo6 libncurses6
40
42
41
43
- name : Install ghc/cabal
42
44
run : |
@@ -134,6 +136,8 @@ jobs:
134
136
- name : Checkout code
135
137
uses : actions/checkout@v4
136
138
139
+ - uses : haskell/ghcup-setup@v1
140
+
137
141
- name : Run build
138
142
run : |
139
143
bash .github/scripts/brew.sh git coreutils llvm@13 autoconf automake
@@ -144,7 +148,9 @@ jobs:
144
148
export AR="$HOME/.brew/opt/llvm@13/bin/llvm-ar"
145
149
export RANLIB="$HOME/.brew/opt/llvm@13/bin/llvm-ranlib"
146
150
. .github/scripts/env.sh
147
- 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
151
+ ghcup install ghc --set ${{ matrix.ghc }}
152
+ ghcup install cabal --set latest
153
+ cabal update
148
154
cabal test
149
155
cabal bench
150
156
env :
@@ -164,10 +170,14 @@ jobs:
164
170
- name : Checkout code
165
171
uses : actions/checkout@v4
166
172
173
+ - uses : haskell/ghcup-setup@v1
174
+
167
175
- name : Run build
168
176
run : |
169
- pkg install -y curl gcc gmp gmake ncurses perl5 libffi libiconv git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14
177
+ sudo pkg install -y curl gcc gmp gmake ncurses perl5 libffi libiconv git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14
170
178
. .github/scripts/env.sh
171
- 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
179
+ ghcup install ghc --set ${{ matrix.ghc }}
180
+ ghcup install cabal --set recommended
181
+ cabal update
172
182
cabal test
173
183
cabal bench
0 commit comments