Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .github/workflows/build-and-publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,22 @@ jobs:
fail-fast: false
matrix:
# skip building wheel for windows as it's not working yet
os: [ubuntu-latest, macos-13] #windows-2019
os: [ubuntu-latest, macos-latest] #windows-2019

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Provide gfortran (macOS-13)
- name: Symlink gfortran (macOS)
if: runner.os == 'macOS'
run: |
# https://github.com/actions/virtual-environments/issues/2524
# https://github.com/cbg-ethz/dce/blob/master/.github/workflows/pkgdown.yaml
sudo ln -s /usr/local/bin/gfortran-13 /usr/local/bin/gfortran
sudo mkdir /usr/local/gfortran
sudo ln -s /usr/local/Cellar/gcc@13/*/lib/gcc/13 /usr/local/gfortran/lib
brew install gcc
fc_files=( $(brew --prefix)/bin/gfortran-* )
sudo ln -sf "${fc_files[@]: -1}" /usr/local/bin/gfortran
gfortran --version

- name: Provide gfortran (Windows)
- name: Symlink gfortran (Windows)
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2

Expand All @@ -48,7 +46,7 @@ jobs:
env:
# Disable building for PyPy and 32bit.
CIBW_SKIP: pp* *-win32 *-manylinux_i686
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET="13.0"
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET="15.0"
CIBW_BEFORE_BUILD_MACOS: python -m pip install --upgrade pip
# Package the DLL dependencies in the wheel for windows (done by default for the other platforms).
# delvewheel cannot mangle the libraries, stripping does not work.
Expand Down
Loading