Skip to content

Commit

Permalink
CI: Split AArch64 targets to parallelise their build.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Aug 27, 2023
1 parent a4b0c8c commit 984bc48
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
30 changes: 29 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,34 @@ jobs:
- musllinux_1_1_aarch64
#- manylinux_2_24_ppc64le
#- manylinux_2_24_s390x
pyversion: ["cp*"]

include:
- image: manylinux_2_24_aarch64
pyversion: "cp37*"
- image: manylinux_2_24_aarch64
pyversion: "cp38*"
- image: manylinux_2_24_aarch64
pyversion: "cp39*"
- image: manylinux_2_24_aarch64
pyversion: "cp310*"
- image: manylinux_2_24_aarch64
pyversion: "cp311*"
- image: manylinux_2_28_aarch64
pyversion: "cp312*"

- image: musllinux_1_1_aarch64
pyversion: "cp37*"
- image: musllinux_1_1_aarch64
pyversion: "cp38*"
- image: musllinux_1_1_aarch64
pyversion: "cp39*"
- image: musllinux_1_1_aarch64
pyversion: "cp310*"
- image: musllinux_1_1_aarch64
pyversion: "cp311*"
- image: musllinux_1_1_aarch64
pyversion: "cp312*"

runs-on: ubuntu-latest

Expand All @@ -70,7 +98,7 @@ jobs:
- name: Building wheel
run: |
make sdist wheel_${{ matrix.image }}
make MANYLINUX_PYTHON="${{ matrix.pyversion }}" sdist wheel_${{ matrix.image }}
- name: Copy wheels in dist
run: cp -v wheelhouse*/fastrlock*.whl dist/
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ PYTHON_WITH_CYTHON=$(shell $(PYTHON) -c 'import Cython.Compiler' >/dev/null 2>/
PY2_WITH_CYTHON=$(shell $(PYTHON2) -c 'import Cython.Compiler' >/dev/null 2>/dev/null && echo " --with-cython" || true)

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

0 comments on commit 984bc48

Please sign in to comment.