Skip to content

Commit b219a3c

Browse files
authored
Merge pull request #2636 from mrmundt/parallel-release-wheel
Parallel build of manylinux wheels
2 parents 5baacb3 + a5cff16 commit b219a3c

File tree

1 file changed

+5
-49
lines changed

1 file changed

+5
-49
lines changed

.github/workflows/release_wheel_creation.yml

Lines changed: 5 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,17 @@ env:
1919

2020
jobs:
2121
manylinux:
22-
name: ${{ matrix.TARGET }}/wheel_creation
22+
name: ${{ matrix.TARGET }}/${{ matrix.wheel-version }}_wheel_creation
2323
runs-on: ${{ matrix.os }}
2424
strategy:
2525
fail-fast: false
2626
matrix:
27+
wheel-version: ['cp37-cp37m', 'cp38-cp38', 'cp39-cp39', 'cp310-cp310', 'cp311-cp311']
2728
os: [ubuntu-latest]
2829
include:
2930
- os: ubuntu-latest
3031
TARGET: manylinux
31-
python-version: [3.7]
32+
python-version: [3.8]
3233
steps:
3334
- uses: actions/checkout@v3
3435
- name: Set up Python ${{ matrix.python-version }}
@@ -43,7 +44,7 @@ jobs:
4344
- name: Build manylinux Python wheels
4445
uses: RalfG/python-wheels-manylinux-build@a1e012c58ed3960f81b7ed2759a037fb0ad28e2d
4546
with:
46-
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311'
47+
python-versions: ${{ matrix.wheel-version }}
4748
build-requirements: 'cython pybind11'
4849
package-path: ''
4950
pip-wheel-args: ''
@@ -61,51 +62,6 @@ jobs:
6162
name: manylinux-wheels
6263
path: dist
6364

64-
manylinuxaarch64:
65-
if: ${{ false }}
66-
name: ${{ matrix.TARGET }}/wheel_creation
67-
runs-on: ${{ matrix.os }}
68-
strategy:
69-
fail-fast: false
70-
matrix:
71-
os: [ubuntu-latest]
72-
include:
73-
- os: ubuntu-latest
74-
TARGET: manylinuxaarch64
75-
python-version: [3.7]
76-
steps:
77-
- uses: actions/checkout@v3
78-
- name: Set up Python ${{ matrix.python-version }}
79-
uses: actions/setup-python@v3
80-
with:
81-
python-version: ${{ matrix.python-version }}
82-
- uses: docker/setup-qemu-action@v1
83-
name: Set up QEMU
84-
- name: Install dependencies
85-
run: |
86-
python -m pip install --upgrade pip
87-
pip install twine wheel setuptools pybind11
88-
- name: Build manylinux Python wheels
89-
uses: RalfG/python-wheels-manylinux-build@v0.4.0-manylinux2014_aarch64
90-
with:
91-
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39'
92-
build-requirements: 'cython'
93-
package-path: ''
94-
pip-wheel-args: ''
95-
# When locally testing, --no-deps flag is necessary (PyUtilib dependency will trigger an error otherwise)
96-
- name: Consolidate wheels
97-
run: |
98-
sudo test -d dist || mkdir -v dist
99-
sudo find . -name \*.whl | grep -v /dist/ | xargs -n1 -i mv -v "{}" dist/
100-
- name: Delete linux wheels
101-
run: |
102-
sudo rm -rfv dist/*-linux_aarch64.whl
103-
- name: Upload artifact
104-
uses: actions/upload-artifact@v3
105-
with:
106-
name: manylinux-aarch64-wheels
107-
path: dist
108-
10965
generictarball:
11066
name: ${{ matrix.TARGET }}
11167
runs-on: ${{ matrix.os }}
@@ -116,7 +72,7 @@ jobs:
11672
include:
11773
- os: ubuntu-latest
11874
TARGET: generic_tarball
119-
python-version: [3.7]
75+
python-version: [3.8]
12076
steps:
12177
- uses: actions/checkout@v3
12278
- name: Set up Python ${{ matrix.python-version }}

0 commit comments

Comments
 (0)