Skip to content

Commit

Permalink
homebrew only on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamonDinoia authored and janden committed Jun 14, 2024
1 parent 0998453 commit f161184
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/python_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ jobs:
fail-fast: false
matrix: ${{ fromJSON(needs.prepare.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- name: Set min macOS version and install fftw and libomp
if: runner.os == 'macOS'
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "MACOS_DEPLOYMENT_TARGET=10.14" >> $GITHUB_ENV
brew install fftw libomp
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -36,12 +43,7 @@ jobs:
clangtidy: false
- name: Install pytest
run: python -m pip install pytest
- name: Set min macOS version and install fftw and libomp
if: runner.os == 'macOS'
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "MACOS_DEPLOYMENT_TARGET=10.14" >> $GITHUB_ENV
brew install fftw libomp

- name: Install fftw and libomp
if: runner.os == 'linux'
run: |
Expand Down

0 comments on commit f161184

Please sign in to comment.