Skip to content

Commit eae6e11

Browse files
committed
- bump versions ensure we have correct swig version installed
1 parent 690e00e commit eae6e11

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454

5555
- name: Install cibuildwheel
5656
run: |
57-
python -m pip install cibuildwheel==3.2.1 swig==4.2.1 cmake==3.31.6
57+
python -m pip install cibuildwheel==3.4.0 swig==4.4.1 cmake==3.31.6
5858
5959
# print versions
6060
python --version
@@ -67,6 +67,13 @@ jobs:
6767
name: libSEDML-sdist
6868
path: .
6969

70+
- name: Set artifact name
71+
id: artifact-name
72+
shell: bash
73+
run: |
74+
python_tag="${CIBW_BUILD%-*}"
75+
echo "name=libSEDML-${{ matrix.os }}-${python_tag}-${{ strategy.job-index }}" >> $GITHUB_OUTPUT
76+
7077
- name: Unpack sdist
7178
shell: bash
7279
run: |
@@ -80,15 +87,17 @@ jobs:
8087
- name: Build wheels
8188
env:
8289
CIBW_BUILD: ${{ matrix.python_version }}
83-
CIBW_SKIP: "*-musllinux* cp36-* cp37-* cp38-* *-win32"
90+
CIBW_ARCHS_MACOS: x86_64 arm64
91+
CIBW_BEFORE_BUILD_LINUX: "pip install swig==4.4.1"
92+
CIBW_SKIP: "*-musllinux* cp38-* *-win32"
8493
run: |
8594
python -m cibuildwheel --output-dir wheelhouse
8695
8796
- name: Upload wheels
8897
uses: actions/upload-artifact@v4
8998
with:
9099
path: wheelhouse/*.whl
91-
name: libSEDML-${{ matrix.os }}-${{ strategy.job-index }}
100+
name: ${{ steps.artifact-name.outputs.name }}
92101

93102
merge_wheels:
94103
needs: [build_wheels]

0 commit comments

Comments
 (0)