Skip to content

Commit 2fd5f3a

Browse files
committed
gha: install llvm-13 on MacOs
This is required for GHC-8.10 workflow.
1 parent af59a15 commit 2fd5f3a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/haskell.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,25 @@ jobs:
2525
- name: Set cache version
2626
run: echo "CACHE_VERSION=pu4Aevoo" >> $GITHUB_ENV
2727

28+
- name: Install LLVM (macOS)
29+
if: runner.os == 'macOS' && matrix.ghc == '8.10'
30+
run: |
31+
brew install llvm@13
32+
echo "LLVM_CONFIG=$(brew --prefix llvm@13)/bin/llvm-config" >> $GITHUB_ENV
33+
echo "$(brew --prefix llvm@13)/bin" >> $GITHUB_PATH
34+
35+
- name: Verify LLVM installation
36+
if: runner.os == 'macOS' && matrix.ghc == '8.10'
37+
run: |
38+
llvm-config --version
39+
opt --version
40+
41+
- name: Print environment variables
42+
if: runner.os == 'macOS' && matrix.ghc == '8.10'
43+
run: |
44+
echo "PATH = $PATH"
45+
echo "LLVM_CONFIG = $LLVM_CONFIG"
46+
2847
- name: "Setup Haskell"
2948
uses: haskell-actions/setup@v2
3049
id: setup-haskell

0 commit comments

Comments
 (0)