Skip to content

Commit

Permalink
Pin OSX cmake workflow at python 3.12, take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin committed Oct 18, 2024
1 parent 672b1a0 commit 8b260a8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ jobs:
sudo apt-get install libbz2-dev libboost-all-dev libflac-dev libnetcdf-dev libpython3-dev
sudo pip install numpy scipy matplotlib astropy healpy sphinx --break-system-packages
- name: Setup python on macOS
if: runner.environment == 'github-hosted' && runner.os == 'macOS'
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install macOS Dependencies
if: runner.environment == 'github-hosted' && runner.os == 'macOS'
run: |
brew install python@3.12
brew link --overwrite python@3.12
export PATH=$(brew --prefix python@3.12)/libexec/bin:$(brew --prefix python@3.12)/bin:$PATH
echo PATH=$PATH >> $GITHUB_ENV
brew install bzip2 boost boost-python3 flac netcdf
python3.12 -m pip install numpy scipy matplotlib astropy healpy sphinx --break-system-packages
Expand Down

0 comments on commit 8b260a8

Please sign in to comment.