Skip to content

Commit

Permalink
Install llvm for ghc 8.10 macos
Browse files Browse the repository at this point in the history
  • Loading branch information
bolt12 committed May 8, 2024
1 parent 3075d27 commit 732bfb6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:

steps:
- name: Install dependencies
run: sudo apt install -y fd-find
run: |
sudo apt install -y fd-find
- uses: actions/checkout@v3

Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,25 @@ jobs:
ghc-version: ${{ matrix.ghc }}
cabal-version: "3.10.1.0"

- name: Install LLVM (macOS)
if: runner.os == 'macOS'
run: |
brew install llvm@13
echo "LLVM_CONFIG=$(brew --prefix llvm@13)/bin/llvm-config" >> $GITHUB_ENV
echo "$(brew --prefix llvm@13)/bin" >> $GITHUB_PATH
- name: Verify LLVM installation
if: runner.os == 'macOS'
run: |
llvm-config --version
opt --version
- name: Print environment variables
if: runner.os == 'macOS'
run: |
echo "PATH = $PATH"
echo "LLVM_CONFIG = $LLVM_CONFIG"
- uses: actions/checkout@v3

- name: "Configure cabal.project.local"
Expand Down

0 comments on commit 732bfb6

Please sign in to comment.