Skip to content

Commit

Permalink
Tries MacOSX wheel builds
Browse files Browse the repository at this point in the history
- Removes deprecated Python builds
  • Loading branch information
holm10 committed Mar 11, 2024
1 parent 50bd03e commit 32992b0
Showing 1 changed file with 41 additions and 9 deletions.
50 changes: 41 additions & 9 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@ name: Build wheel files
on: [push, pull_request]

jobs:
build_wheels:
build_ubuntu_wheels:
name: Build wheels on ${{ matrix.os }} for Python ${{ matrix.pyversions }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest] #, windows-latest, macos-13, macos-14]
pyversions: ['3.11', '3.10', '3.9', '3.8', '3.7', '3.6', '3.5', '3.4']
pyversions: ['3.11', '3.10', '3.9', '3.8', '3.7',]

steps:
- uses: actions/checkout@v4

# Used to host cibuildwheel
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pyversions }}
Expand All @@ -27,17 +26,50 @@ jobs:
python -m pip install flake8
python -m pip install pytest-isolate pytest-xdist
pip install 'build<0.10.0'
# python -m pip install cibuildwheel==2.16.5
- name: Build wheels
run: python -m build
# run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}-py${{ matrix.pyversions }}
# path: ./wheelhouse/*.whl
path: dist/*.whl


jobs:
build_macosx_wheels:
name: Build wheels on ${{ matrix.os }} for Python ${{ matrix.pyversions }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-13, macos-14]
pyversions: ['3.11', '3.10', '3.9', '3.8', '3.7',]

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pyversions }}

- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
python -m pip install forthon mppl numpy h5py
python -m pip install flake8
python -m pip install pytest-isolate pytest-xdist
pip install 'build<0.10.0'
- uses: egor-tensin/setup-gcc@v1
with:
version: latest
platform: x64

- name: Build wheels
run: python -m build

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}-py${{ matrix.pyversions }}
path: dist/*.whl

0 comments on commit 32992b0

Please sign in to comment.