Skip to content

Commit 984bc48

Browse files
committed
CI: Split AArch64 targets to parallelise their build.
1 parent a4b0c8c commit 984bc48

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,34 @@ jobs:
5353
- musllinux_1_1_aarch64
5454
#- manylinux_2_24_ppc64le
5555
#- manylinux_2_24_s390x
56+
pyversion: ["cp*"]
57+
58+
include:
59+
- image: manylinux_2_24_aarch64
60+
pyversion: "cp37*"
61+
- image: manylinux_2_24_aarch64
62+
pyversion: "cp38*"
63+
- image: manylinux_2_24_aarch64
64+
pyversion: "cp39*"
65+
- image: manylinux_2_24_aarch64
66+
pyversion: "cp310*"
67+
- image: manylinux_2_24_aarch64
68+
pyversion: "cp311*"
69+
- image: manylinux_2_28_aarch64
70+
pyversion: "cp312*"
71+
72+
- image: musllinux_1_1_aarch64
73+
pyversion: "cp37*"
74+
- image: musllinux_1_1_aarch64
75+
pyversion: "cp38*"
76+
- image: musllinux_1_1_aarch64
77+
pyversion: "cp39*"
78+
- image: musllinux_1_1_aarch64
79+
pyversion: "cp310*"
80+
- image: musllinux_1_1_aarch64
81+
pyversion: "cp311*"
82+
- image: musllinux_1_1_aarch64
83+
pyversion: "cp312*"
5684

5785
runs-on: ubuntu-latest
5886

@@ -70,7 +98,7 @@ jobs:
7098
7199
- name: Building wheel
72100
run: |
73-
make sdist wheel_${{ matrix.image }}
101+
make MANYLINUX_PYTHON="${{ matrix.pyversion }}" sdist wheel_${{ matrix.image }}
74102
75103
- name: Copy wheels in dist
76104
run: cp -v wheelhouse*/fastrlock*.whl dist/

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ PYTHON_WITH_CYTHON=$(shell $(PYTHON) -c 'import Cython.Compiler' >/dev/null 2>/
88
PY2_WITH_CYTHON=$(shell $(PYTHON2) -c 'import Cython.Compiler' >/dev/null 2>/dev/null && echo " --with-cython" || true)
99

1010
# manylinux1 images still include Python 2.7
11+
MANYLINUX_PYTHON?=cp*
1112
MANYLINUX_IMAGES= \
1213
manylinux1_x86_64 \
1314
manylinux1_i686 \
@@ -57,7 +58,7 @@ wheel_%: dist/$(PACKAGENAME)-$(VERSION).tar.gz
5758
bash -c '\
5859
rm -fr $(PACKAGENAME)-$(VERSION)/; \
5960
tar zxf /io/$< && cd $(PACKAGENAME)-$(VERSION)/ || exit 1; \
60-
for PYBIN in /opt/python/cp*/bin; do \
61+
for PYBIN in /opt/python/$(MANYLINUX_PYTHON)/bin; do \
6162
PYVER="$$($$PYBIN/python -V)"; \
6263
PROFDIR="prof-$${PYVER// /_}"; \
6364
echo $$PYVER; \

0 commit comments

Comments
 (0)