Skip to content

Commit 68562b1

Browse files
committed
build from sdist
1 parent a77801c commit 68562b1

1 file changed

Lines changed: 27 additions & 17 deletions

File tree

.github/workflows/experimental_wheels.yml

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,42 @@ jobs:
2121
- name: Build SDist
2222
run: pipx run build --sdist
2323

24-
- uses: actions/upload-artifact@v3
24+
- uses: actions/upload-artifact@v4
2525
with:
2626
path: dist/*.tar.gz
2727
name: sdist
2828

2929
build_wheels:
3030
name: Wheel on ${{ matrix.os }} for ${{ matrix.python_version }}
3131
runs-on: ${{ matrix.os }}
32+
needs: make_sdist
3233
strategy:
3334
fail-fast: false
3435
matrix:
35-
os: [ubuntu-20.04, windows-2019, macos-11]
36-
python_version: ['cp37-*', 'cp38-*', 'cp39-*', 'cp310-*', 'cp311-*', 'cp312-*']
36+
os: [ubuntu-latest, windows-latest, macos-latest]
37+
python_version: ['cp38-*', 'cp39-*', 'cp310-*', 'cp311-*', 'cp312-*']
3738

3839
steps:
39-
- uses: actions/checkout@v4
40-
with:
41-
submodules: recursive
42-
43-
- uses: pypa/cibuildwheel@v2.16.2
44-
env:
45-
CIBW_BUILD: ${{ matrix.python_version }}
46-
CIBW_ARCHS_MACOS: x86_64 arm64
47-
CIBW_ENVIRONMENT: LIBSBML_EXPERIMENTAL=1
48-
49-
- name: Upload wheels
50-
uses: actions/upload-artifact@v3
51-
with:
52-
path: wheelhouse/*.whl
40+
- uses: actions/download-artifact@v4
41+
with:
42+
name: sdist
43+
44+
- name: Extract sdist into the current directory
45+
shell: bash
46+
run: |
47+
tar zxf *.tar.gz --strip-components=1
48+
49+
- name: install swig on macos
50+
if: matrix.os == 'macos-latest'
51+
run: brew install swig
52+
53+
- uses: pypa/cibuildwheel@v2.16.5
54+
env:
55+
CIBW_BUILD: ${{ matrix.python_version }}
56+
CIBW_ARCHS_MACOS: x86_64 arm64
57+
CIBW_ENVIRONMENT: LIBSBML_EXPERIMENTAL=1
58+
59+
- name: Upload wheels
60+
uses: actions/upload-artifact@v3
61+
with:
62+
path: wheelhouse/*.whl

0 commit comments

Comments
 (0)