Skip to content

Commit cb9c3a5

Browse files
committed
Adding aarch64 build
1 parent 0095d61 commit cb9c3a5

File tree

1 file changed

+29
-21
lines changed

1 file changed

+29
-21
lines changed

.github/workflows/build-wheels-push.yml

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: build-wheels-push
33
# on: push
44

55
on:
6+
workflow_dispatch:
67
release:
78
types:
89
- published
@@ -26,8 +27,10 @@ jobs:
2627
buildplat:
2728
- [ubuntu-20.04, manylinux_x86_64]
2829
- [ubuntu-20.04, manylinux_i686]
30+
- [ubuntu-20.04, manylinux_aarch64]
2931
- [ubuntu-20.04, musllinux_x86_64] # No OpenBlas, no test
3032
- [ubuntu-20.04, musllinux_i686]
33+
- [ubuntu-20.04, musllinux_aarch64]
3134
- [macos-12, macosx_x86_64]
3235
- [macos-14, macosx_arm64]
3336
- [windows-2019, win_amd64]
@@ -36,6 +39,11 @@ jobs:
3639

3740
steps:
3841
- uses: actions/checkout@v4
42+
- name: Set up QEMU # Required for aarch64 builds
43+
if: matrix.buildplat == [ubuntu-20.04, manylinux_aarch64] || matrix.buildplat == [ubuntu-20.04, musllinux_aarch64]
44+
uses: docker/setup-qemu-action@v3
45+
with:
46+
platforms: all
3947
- name: Build wheels
4048
uses: pypa/[email protected]
4149
env:
@@ -86,29 +94,29 @@ jobs:
8694
# with:
8795
# repository-url: https://test.pypi.org/legacy/
8896

89-
upload_pypi:
90-
name: >-
91-
Publish highspy to PyPI
92-
runs-on: ubuntu-latest
93-
needs: [build_wheels, build_sdist]
97+
# upload_pypi:
98+
# name: >-
99+
# Publish highspy to PyPI
100+
# runs-on: ubuntu-latest
101+
# needs: [build_wheels, build_sdist]
94102

95-
# upload to PyPI on every tag starting with 'v'
96-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
103+
# # upload to PyPI on every tag starting with 'v'
104+
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
97105

98-
environment:
99-
name: pypi
100-
url: https://pypi.org/p/highspy
106+
# environment:
107+
# name: pypi
108+
# url: https://pypi.org/p/highspy
101109

102-
permissions:
103-
id-token: write # IMPORTANT: mandatory for trusted publishing
110+
# permissions:
111+
# id-token: write # IMPORTANT: mandatory for trusted publishing
104112

105-
steps:
106-
- uses: actions/download-artifact@v3
107-
with:
108-
# unpacks default artifact into dist/
109-
# if `name: artifact` is omitted, the action will create extra parent dir
110-
name: artifact
111-
path: dist
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
112120

113-
- name: Download all
114-
uses: pypa/gh-action-pypi-publish@release/v1
121+
# - name: Download all
122+
# uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)