Skip to content

Commit

Permalink
build from sdist
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Aug 8, 2024
1 parent a77801c commit 68562b1
Showing 1 changed file with 27 additions and 17 deletions.
44 changes: 27 additions & 17 deletions .github/workflows/experimental_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,42 @@ jobs:
- name: Build SDist
run: pipx run build --sdist

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz
name: sdist

build_wheels:
name: Wheel on ${{ matrix.os }} for ${{ matrix.python_version }}
runs-on: ${{ matrix.os }}
needs: make_sdist
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
python_version: ['cp37-*', 'cp38-*', 'cp39-*', 'cp310-*', 'cp311-*', 'cp312-*']
os: [ubuntu-latest, windows-latest, macos-latest]
python_version: ['cp38-*', 'cp39-*', 'cp310-*', 'cp311-*', 'cp312-*']

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: pypa/[email protected]
env:
CIBW_BUILD: ${{ matrix.python_version }}
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ENVIRONMENT: LIBSBML_EXPERIMENTAL=1

- name: Upload wheels
uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl
- uses: actions/download-artifact@v4
with:
name: sdist

- name: Extract sdist into the current directory
shell: bash
run: |
tar zxf *.tar.gz --strip-components=1
- name: install swig on macos
if: matrix.os == 'macos-latest'
run: brew install swig

- uses: pypa/[email protected]
env:
CIBW_BUILD: ${{ matrix.python_version }}
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ENVIRONMENT: LIBSBML_EXPERIMENTAL=1

- name: Upload wheels
uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl

0 comments on commit 68562b1

Please sign in to comment.