@@ -3,7 +3,6 @@ name: build-wheels-push
33# on: push
44
55on :
6- workflow_dispatch :
76 release :
87 types :
98 - published
@@ -40,11 +39,18 @@ jobs:
4039 steps :
4140 - uses : actions/checkout@v4
4241 - name : Set up QEMU # Required for aarch64 builds
43- if : matrix.buildplat[1] == 'manylinux_aarch64' || matrix.buildplat[1] == 'musllinux_aarch64'
42+ if : ${{ contains( matrix.buildplat[1], 'aarch64') }}
4443 uses : docker/setup-qemu-action@v3
4544 with :
4645 platforms : all
47- - name : Build wheels
46+ - name : Build wheels (aarch64)
47+ if : ${{ contains(matrix.buildplat[1], 'aarch64') }}
48+ 49+ env :
50+ CIBW_BUILD : ${{ matrix.python }}-${{ matrix.buildplat[1] }}
51+ CIBW_ARCHS_LINUX : aarch64
52+ - name : Build wheels (not aarch64)
53+ if : ${{ !contains(matrix.buildplat[1], 'aarch64') }}
48544955 env :
5056 CIBW_BUILD : ${{ matrix.python }}-${{ matrix.buildplat[1] }}
@@ -94,29 +100,29 @@ jobs:
94100 # with:
95101 # repository-url: https://test.pypi.org/legacy/
96102
97- # upload_pypi:
98- # name: >-
99- # Publish highspy to PyPI
100- # runs-on: ubuntu-latest
101- # needs: [build_wheels, build_sdist]
103+ upload_pypi :
104+ name : >-
105+ Publish highspy to PyPI
106+ runs-on : ubuntu-latest
107+ needs : [build_wheels, build_sdist]
102108
103- # # upload to PyPI on every tag starting with 'v'
104- # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
109+ # upload to PyPI on every tag starting with 'v'
110+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
105111
106- # environment:
107- # name: pypi
108- # url: https://pypi.org/p/highspy
112+ environment :
113+ name : pypi
114+ url : https://pypi.org/p/highspy
109115
110- # permissions:
111- # id-token: write # IMPORTANT: mandatory for trusted publishing
116+ permissions :
117+ id-token : write # IMPORTANT: mandatory for trusted publishing
112118
113- # steps:
114- # - uses: actions/download-artifact@v3
115- # with:
116- # # unpacks default artifact into dist/
117- # # if `name: artifact` is omitted, the action will create extra parent dir
118- # name: artifact
119- # path: dist
119+ steps :
120+ - uses : actions/download-artifact@v3
121+ with :
122+ # unpacks default artifact into dist/
123+ # if `name: artifact` is omitted, the action will create extra parent dir
124+ name : artifact
125+ path : dist
120126
121- # - name: Download all
122- # uses: pypa/gh-action-pypi-publish@release/v1
127+ - name : Download all
128+ uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments