11name : build-wheels-push
22
3- on : []
3+ # on: []
44# on: push
55
6- # on:
7- # release:
8- # types:
9- # - published
6+ on :
7+ release :
8+ types :
9+ - published
1010
1111concurrency :
1212 group : ${{ github.workflow }}-${{ github.ref }}
@@ -43,12 +43,12 @@ jobs:
4343 # Github Actions doesn't support pairing matrix values together, let's improvise
4444 # https://github.com/github/feedback/discussions/7835#discussioncomment-1769026
4545 buildplat :
46- - [ubuntu-20 .04, manylinux_x86_64]
47- - [ubuntu-20 .04, manylinux_i686]
48- - [ubuntu-20 .04, manylinux_aarch64]
49- - [ubuntu-20 .04, musllinux_x86_64] # No OpenBlas, no test
50- - [ubuntu-20 .04, musllinux_i686]
51- - [ubuntu-20 .04, musllinux_aarch64]
46+ - [ubuntu-24 .04, manylinux_x86_64]
47+ - [ubuntu-24 .04, manylinux_i686]
48+ - [ubuntu-24 .04-arm , manylinux_aarch64]
49+ - [ubuntu-24 .04, musllinux_x86_64] # No OpenBlas, no test
50+ - [ubuntu-24 .04, musllinux_i686]
51+ - [ubuntu-24 .04-arm , musllinux_aarch64]
5252 - [macos-13, macosx_x86_64]
5353 - [macos-14, macosx_arm64]
5454 - [windows-2019, win_amd64]
5858 steps :
5959 - uses : actions/checkout@v4
6060
61- - name : Set up QEMU # Required for aarch64 builds
62- if : ${{ contains(matrix.buildplat[1], 'aarch64') }}
63- uses : docker/setup-qemu-action@v3
64- with :
65- platforms : all
66-
67- - name : Build wheels (aarch64)
68- if : ${{ contains(matrix.buildplat[1], 'aarch64') }}
69- 70- env :
71- CIBW_BUILD : ${{ matrix.python }}-${{ matrix.buildplat[1] }}
72- CIBW_ARCHS_LINUX : aarch64
73-
74- - name : Build wheels (not aarch64)
75- if : ${{ !contains(matrix.buildplat[1], 'aarch64') }}
61+ - name : Build wheels
76627763 env :
7864 CIBW_BUILD : ${{ matrix.python }}-${{ matrix.buildplat[1] }}
@@ -82,51 +68,22 @@ jobs:
8268 name : cibw-wheels-${{ matrix.python }}-${{ matrix.buildplat[1] }}
8369 path : wheelhouse/*.whl
8470
85- upload_testpypi :
86- name : >-
87- Publish highspy to TestPyPI
88- runs-on : ubuntu-latest
89- needs : [build_wheels, build_sdist]
90- # needs: [build_sdist]
91-
92- # upload to PyPI on every tag starting with 'v'
93- # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
94-
95- environment :
96- name : testpypi
97- url : https://test.pypi.org/p/highspy
98-
99- permissions :
100- id-token : write # IMPORTANT: mandatory for trusted publishing
101- steps :
102- - uses : actions/download-artifact@v4
103- with :
104- pattern : cibw-*
105- path : dist
106- merge-multiple : true
107-
108- - name : Download all
109- uses : pypa/gh-action-pypi-publish@release/v1
110- with :
111- repository-url : https://test.pypi.org/legacy/
112- verbose : true
113-
114- # upload_pypi:
71+ # upload_testpypi:
11572 # name: >-
116- # Publish highspy to PyPI
73+ # Publish highspy to TestPyPI
11774 # runs-on: ubuntu-latest
11875 # needs: [build_wheels, build_sdist]
76+ # # needs: [build_sdist]
11977
12078 # # upload to PyPI on every tag starting with 'v'
12179 # # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
12280
12381 # environment:
124- # name: pypi
125- # url: https://pypi.org/p/highspy
82+ # name: testpypi
83+ # url: https://test. pypi.org/p/highspy
12684
12785 # permissions:
12886 # id-token: write # IMPORTANT: mandatory for trusted publishing
129-
13087 # steps:
13188 # - uses: actions/download-artifact@v4
13289 # with:
@@ -136,3 +93,32 @@ jobs:
13693
13794 # - name: Download all
13895 # uses: pypa/gh-action-pypi-publish@release/v1
96+ # with:
97+ # repository-url: https://test.pypi.org/legacy/
98+ # verbose: true
99+
100+ upload_pypi :
101+ name : >-
102+ Publish highspy to PyPI
103+ runs-on : ubuntu-latest
104+ needs : [build_wheels, build_sdist]
105+
106+ # upload to PyPI on every tag starting with 'v'
107+ # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
108+
109+ environment :
110+ name : pypi
111+ url : https://pypi.org/p/highspy
112+
113+ permissions :
114+ id-token : write # IMPORTANT: mandatory for trusted publishing
115+
116+ steps :
117+ - uses : actions/download-artifact@v4
118+ with :
119+ pattern : cibw-*
120+ path : dist
121+ merge-multiple : true
122+
123+ - name : Download all
124+ uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments