Skip to content

Commit

Permalink
Set up Fortran compiler via GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed May 15, 2024
1 parent 092af70 commit b47c034
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,15 @@ jobs:
- name: Clone pybind11 repo (no history)
run: git clone --depth 1 --branch v2.11.1 https://github.com/pybind/pybind11.git

# sometimes gfortran cannot be found, so reinstall gcc just to be sure
- uses: fortran-lang/setup-fortran@v1.6
id: setup-fortran
with:
compiler: gcc
version: 13

- name: Install SuiteSparse and SUNDIALS on macOS
if: matrix.os == 'macos-12'
run: |
brew install graphviz
brew reinstall gcc
python -m pip install cmake wget
python scripts/install_KLU_Sundials.py
Expand All @@ -137,6 +140,7 @@ jobs:
if: matrix.os == 'macos-12'
run: pipx run cibuildwheel --output-dir wheelhouse
env:
MACOSX_DEPLOYMENT_TARGET: 11.1
CIBW_BEFORE_BUILD_MACOS: >
python -m pip install --upgrade cmake casadi setuptools wheel
CIBW_REPAIR_WHEEL_COMMAND_MACOS: delocate-listdeps {wheel} && delocate-wheel -v -w {dest_dir} {wheel}
Expand All @@ -162,10 +166,14 @@ jobs:
- name: Clone pybind11 repo (no history)
run: git clone --depth 1 --branch v2.11.1 https://github.com/pybind/pybind11.git

- uses: fortran-lang/setup-fortran@v1.6
id: setup-fortran
with:
compiler: gcc
version: 13

- name: Install SuiteSparse and SUNDIALS on macOS
run: |
brew install graphviz
brew reinstall gcc
python -m pip install cmake pipx
python scripts/install_KLU_Sundials.py
Expand Down

0 comments on commit b47c034

Please sign in to comment.