27
27
- os : windows-latest
28
28
ghc : ' 9.8'
29
29
steps :
30
- - uses : actions/checkout@v3
30
+ - uses : actions/checkout@v4
31
31
32
32
- name : Install dependencies (Ubuntu)
33
33
if : runner.os == 'Linux'
37
37
38
38
- name : Install GHCup
39
39
uses : haskell/ghcup-setup@v1
40
-
41
- - name : Install ghc/cabal
42
- run : |
43
- set -eux
44
- ghcup install ghc --set ${{ matrix.ghc }}
45
- ghcup install cabal --set latest
46
- shell : bash
40
+ with :
41
+ ghc : ${{ matrix.ghc }}
42
+ cabal : latest
47
43
48
44
- name : Build
49
45
run : |
101
97
runs-on : ${{ matrix.os }}
102
98
env :
103
99
MACOSX_DEPLOYMENT_TARGET : 10.13
100
+ HOMEBREW_CHANGE_ARCH_TO_ARM : 1
104
101
strategy :
105
102
fail-fast : false
106
103
matrix :
@@ -115,22 +112,25 @@ jobs:
115
112
- name : Checkout code
116
113
uses : actions/checkout@v4
117
114
118
- - name : Install GHCup
119
- uses : haskell/ghcup-setup@v1
115
+ - name : Install prerequisites
116
+ run : |
117
+ bash .github/scripts/brew.sh git coreutils llvm@13 autoconf automake
118
+ echo PATH="$HOME/.brew/bin:$HOME/.brew/sbin:$HOME/.brew/opt/llvm@13/bin:$PATH" >> "$GITHUB_ENV"
119
+ echo CC="$HOME/.brew/opt/llvm@13/bin/clang" >> "$GITHUB_ENV"
120
+ echo CXX="$HOME/.brew/opt/llvm@13/bin/clang++" >> "$GITHUB_ENV"
121
+ echo LD=ld >> "$GITHUB_ENV"
122
+ echo AR="$HOME/.brew/opt/llvm@13/bin/llvm-ar" >> "$GITHUB_ENV"
123
+ echo RANLIB="$HOME/.brew/opt/llvm@13/bin/llvm-ranlib" >> "$GITHUB_ENV"
124
+
125
+ - uses : haskell/ghcup-setup@v1
126
+ with :
127
+ ghc : ${{ matrix.ghc }}
128
+ cabal : latest
120
129
121
130
- name : Run build
122
131
run : |
123
- bash .github/scripts/brew.sh git coreutils llvm@13 autoconf automake
124
- export PATH="$HOME/.brew/bin:$HOME/.brew/sbin:$HOME/.brew/opt/llvm@13/bin:$PATH"
125
- export CC="$HOME/.brew/opt/llvm@13/bin/clang"
126
- export CXX="$HOME/.brew/opt/llvm@13/bin/clang++"
127
- export LD=ld
128
- export AR="$HOME/.brew/opt/llvm@13/bin/llvm-ar"
129
- export RANLIB="$HOME/.brew/opt/llvm@13/bin/llvm-ranlib"
130
132
cabal update
131
133
cabal test
132
- env :
133
- HOMEBREW_CHANGE_ARCH_TO_ARM : 1
134
134
135
135
freebsd :
136
136
runs-on : ${{ matrix.os }}
@@ -152,6 +152,9 @@ jobs:
152
152
153
153
- name : Install GHCup
154
154
uses : haskell/ghcup-setup@v1
155
+ with :
156
+ ghc : ${{ matrix.ghc }}
157
+ cabal : latest
155
158
156
159
- name : Run build
157
160
run : |
0 commit comments