Skip to content

Commit

Permalink
CI(MacOS): install numpy through homebrew to make it detectable for C…
Browse files Browse the repository at this point in the history
…Make
  • Loading branch information
Puerling committed Oct 18, 2024
1 parent a2fc0c3 commit 5741e54
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,13 @@ jobs:
echo "/usr/local/cuda-12.5/bin" >> $GITHUB_PATH
echo "/usr/local/cuda-12.5/lib64" >> $GITHUB_PATH
- name: 📚 Install LLVM (MacOS)
# Workaround, because the setup-python action doesn't set up the PATH correctly
- name: 📚 Install LLVM and numpy (MacOS)
if: matrix.os == 'macos-14'
shell: bash
run: |
brew update
brew install llvm
brew install llvm numpy
echo "/usr/local/opt/llvm/bin" >> $GITHUB_PATH
echo "/opt/homebrew/opt/llvm/bin" >> $GITHUB_PATH
Expand All @@ -219,10 +220,12 @@ jobs:
choco upgrade llvm
- uses: actions/setup-python@v5
if: matrix.os != 'macos-14'
with:
python-version: '3.x'

- name: 📚 Install python packages
if: matrix.os != 'macos-14'
run: pip install --user numpy

- name: 📁 Create build folder
Expand Down

0 comments on commit 5741e54

Please sign in to comment.