Skip to content

Commit

Permalink
Fix CliMT build on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
lkluft committed Jul 4, 2024
1 parent 43cb9bf commit a0f449e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install git+https://github.com/atmtools/climt@rrtmg-only --no-binary climt
TARGET=HASWELL python -m pip install .[docs]
python -m pip list
- name: build book
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,26 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install GCC (MacOS)
- name: Install CliMT (MacOS)
if: matrix.name == 'macos'
env:
CC: gcc-12
FC: gfortran-12
TARGET: HASWELL
run: |
brew install gcc@12
echo "CC=gcc-12" >> $GITHUB_ENV
echo "FC=gfortran-12" >> $GITHUB_ENV
python -m pip install --upgrade pip wheel
python -m pip install git+https://github.com/atmtools/climt@rrtmg-only --no-binary climt
- name: Install
- name: Install CliMT (Linux)
if: matrix.name == 'ubuntu'
run: |
python -m pip install --upgrade pip wheel
TARGET=HASWELL python -m pip install -v .[docs,tests]
python -m pip install git+https://github.com/atmtools/climt@rrtmg-only --no-binary climt
- name: Install
run: |
python -m pip install -v .[docs,tests]
python -m pip list
- name: Lint with flake8
Expand Down

0 comments on commit a0f449e

Please sign in to comment.