Skip to content

Commit 5d7c30c

Browse files
authored
Merge pull request #2076 from odidev/odidev_pyomo
Add linux aarch64 wheel build support
2 parents 06cd082 + 79e7f5b commit 5d7c30c

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/release_wheel_creation.yml

+44
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,50 @@ jobs:
5353
name: manylinux-wheels
5454
path: dist
5555

56+
manylinuxaarch64:
57+
name: ${{ matrix.TARGET }}/wheel_creation
58+
runs-on: ${{ matrix.os }}
59+
strategy:
60+
fail-fast: false
61+
matrix:
62+
os: [ubuntu-latest]
63+
include:
64+
- os: ubuntu-latest
65+
TARGET: manylinuxaarch64
66+
python-version: [3.7]
67+
steps:
68+
- uses: actions/checkout@v2
69+
- name: Set up Python ${{ matrix.python-version }}
70+
uses: actions/setup-python@v1
71+
with:
72+
python-version: ${{ matrix.python-version }}
73+
- uses: docker/setup-qemu-action@v1
74+
name: Set up QEMU
75+
- name: Install dependencies
76+
run: |
77+
python -m pip install --upgrade pip
78+
pip install twine wheel setuptools
79+
- name: Build manylinux Python wheels
80+
uses: RalfG/[email protected]_aarch64
81+
with:
82+
python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39'
83+
build-requirements: 'cython'
84+
package-path: ''
85+
pip-wheel-args: ''
86+
# When locally testing, --no-deps flag is necessary (PyUtilib dependency will trigger an error otherwise)
87+
- name: Consolidate wheels
88+
run: |
89+
sudo test -d dist || mkdir -v dist
90+
sudo find . -name \*.whl | grep -v /dist/ | xargs -n1 -i mv -v "{}" dist/
91+
- name: Delete linux wheels
92+
run: |
93+
sudo rm -rfv dist/*-linux_aarch64.whl
94+
- name: Upload artifact
95+
uses: actions/upload-artifact@v1
96+
with:
97+
name: manylinux-aarch64-wheels
98+
path: dist
99+
56100
generictarball:
57101
name: ${{ matrix.TARGET }}
58102
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)