Skip to content

Commit

Permalink
Install libomp for Mac build/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jobovy committed Jul 2, 2024
1 parent 452599b commit af523da
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,14 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install libgsl-dev
- name: Install the GSL
- name: Install the GSL and OpenMP
if: matrix.os == 'macos-12'
run: |
brew install gsl
echo "CFLAGS=-I$(brew --prefix)/include" >> $GITHUB_ENV
echo "LDFLAGS=-L$(brew --prefix)/lib" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=$(brew --prefix)/lib" >> $GITHUB_ENV
brew install gsl libomp
brew info libomp
echo "CFLAGS=-I$(brew --prefix)/include -I/usr/local/opt/libomp/include" >> $GITHUB_ENV
echo "LDFLAGS=-L$(brew --prefix)/lib -L/usr/local/opt/libomp/lib" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=$(brew --prefix)/lib:/usr/local/opt/libomp/lib" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ~/.cache/pip
Expand Down

0 comments on commit af523da

Please sign in to comment.