remove mac-os wheels as it creates problems #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
jobs: | |
build_wheels: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# macos-13 is an intel runner, macos-14 is apple silicon | |
os: [ubuntu-latest, windows-latest] #, macos-13, macos-14 | |
steps: | |
- name: Provide gfortran (Windows) | |
if: runner.os == 'Windows' | |
uses: msys2/setup-msys2@v2 | |
- name: Tell distutils to use mingw (Windows) | |
if: runner.os == 'Windows' | |
run: | | |
echo "[build]`ncompiler=mingw32" | Out-File -Encoding ASCII ~/pydistutils.cfg | |
- uses: actions/checkout@v4 | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
# Disable building for PyPy and 32bit. | |
CIBW_SKIP: pp* *-win32 *-manylinux_i686 | |
# 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. | |
CIBW_BEFORE_ALL_MACOS: brew install gcc | |
CIBW_BEFORE_BUILD_WINDOWS: pip install delvewheel | |
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel show {wheel} && delvewheel repair -w {dest_dir} {wheel} --no-mangle-all" | |
# Run the tests. | |
#CIBW_TEST_COMMAND: python -m unittest pdfo.testpdfo | |
# env: | |
# CIBW_SOME_OPTION: value | |
# ... | |
# with: | |
# package-dir: . | |
# output-dir: wheelhouse | |
# config-file: "{package}/pyproject.toml" | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} | |
path: ./wheelhouse/*.whl |