Skip to content

Commit 57818e6

Browse files
committed
CI: Enable GHC 8.10.7 and 9.0.2 on macos-14 by installing LLVM
1 parent c52769b commit 57818e6

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/build.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,19 @@ jobs:
2929
- os: macos-14
3030
flags: '--flags "fma3 f16c"' # Makes no sense on Arm64
3131
# macos-14 (Arm64) doesn't support older GHC
32-
# 8.10.7 and 9.0.2 are excluded because haskell-actions/setup doesn't install LLVM
3332
- os: macos-14
3433
ghc: '8.6.5'
3534
- os: macos-14
3635
ghc: '8.8.4'
37-
- os: macos-14
38-
ghc: '8.10.7'
39-
- os: macos-14
40-
ghc: '9.0.2'
4136
steps:
4237
- uses: actions/checkout@v4
4338

39+
- name: Install LLVM
40+
run: |
41+
brew install llvm@12
42+
echo "$(brew --prefix llvm@12)/bin" >> "${GITHUB_PATH}"
43+
if: ${{ matrix.os == 'macos-14' && (matrix.ghc == '8.10.7' || matrix.ghc == '9.0.2') }}
44+
4445
- uses: haskell-actions/setup@v2
4546
name: Setup Haskell
4647
with:
@@ -83,21 +84,22 @@ jobs:
8384
- ghc: '9.10'
8485
flags: '--flags x87-long-double'
8586
# macos-14 (Arm64) doesn't support older GHC
86-
# 8.10.7 and 9.0.2 are excluded because haskell-actions/setup doesn't install LLVM
8787
- os: macos-14
8888
ghc: '8.6.5'
8989
- os: macos-14
9090
ghc: '8.8.4'
91-
- os: macos-14
92-
ghc: '8.10.7'
93-
- os: macos-14
94-
ghc: '9.0.2'
9591
# macos-14 (Arm64) doesn't support x87-long-double
9692
- os: macos-14
9793
flags: '--flags x87-long-double'
9894
steps:
9995
- uses: actions/checkout@v4
10096

97+
- name: Install LLVM
98+
run: |
99+
brew install llvm@12
100+
echo "$(brew --prefix llvm@12)/bin" >> "${GITHUB_PATH}"
101+
if: ${{ matrix.os == 'macos-14' && (matrix.ghc == '8.10.7' || matrix.ghc == '9.0.2') }}
102+
101103
- uses: haskell-actions/setup@v2
102104
name: Setup Haskell
103105
with:

0 commit comments

Comments
 (0)