Skip to content

Commit

Permalink
github actions: attempt at converting manylinux arm64 wheel jobs to m…
Browse files Browse the repository at this point in the history
…atrix
  • Loading branch information
StephenCzarnecki committed Oct 31, 2024
1 parent 161d9bf commit d923c5f
Showing 1 changed file with 6 additions and 127 deletions.
133 changes: 6 additions & 127 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,102 +110,12 @@ jobs:
with:
path: wheelhouse/*.whl

build_wheels_manylinux_arm64_python_3_8:
name: Build manylinux wheels python3.8 (arm64)
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Register QEMU for cross-architecture emulation
- name: Set up QEMU for cross-compilation
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Install cibuildwheel
run: |
python -m pip install --upgrade pip
pip install cibuildwheel
- name: Build wheels with cibuildwheel
env:
CIBW_PLATFORM: "linux"
CIBW_BUILD: "cp38-*"
CIBW_ARCHS_LINUX: "aarch64"
run: |
cibuildwheel --output-dir wheelhouse
- name: upload wheels
uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl

build_wheels_manylinux_arm64_python_3_9:
name: Build manylinux wheels python3.9 (arm64)
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Register QEMU for cross-architecture emulation
- name: Set up QEMU for cross-compilation
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Install cibuildwheel
run: |
python -m pip install --upgrade pip
pip install cibuildwheel
- name: Build wheels with cibuildwheel
env:
CIBW_PLATFORM: "linux"
CIBW_BUILD: "cp39-*"
CIBW_ARCHS_LINUX: "aarch64"
run: |
cibuildwheel --output-dir wheelhouse
- name: upload wheels
uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl

build_wheels_manylinux_arm64_python_3_10:
name: Build manylinux wheels python3.10 (arm64)
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Register QEMU for cross-architecture emulation
- name: Set up QEMU for cross-compilation
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Install cibuildwheel
run: |
python -m pip install --upgrade pip
pip install cibuildwheel
- name: Build wheels with cibuildwheel
env:
CIBW_PLATFORM: "linux"
CIBW_BUILD: "cp310-*"
CIBW_ARCHS_LINUX: "aarch64"
run: |
cibuildwheel --output-dir wheelhouse
- name: upload wheels
uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl

build_wheels_manylinux_arm64_python_3_11:
name: Build manylinux wheels python3.11 (arm64)
build_wheels_manylinux_arm64:
name: Build manylinux wheels (arm64)
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ["cp38-*", "cp39-*", "cp310-*", "cp311-*", "cp312-*"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -224,7 +134,7 @@ jobs:
- name: Build wheels with cibuildwheel
env:
CIBW_PLATFORM: "linux"
CIBW_BUILD: "cp311-*"
CIBW_BUILD: ${{ matrix.python-version }}
CIBW_ARCHS_LINUX: "aarch64"
run: |
cibuildwheel --output-dir wheelhouse
Expand All @@ -233,34 +143,3 @@ jobs:
uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl

build_wheels_manylinux_arm64_python_3_12:
name: Build manylinux wheels python3.12 (arm64)
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Register QEMU for cross-architecture emulation
- name: Set up QEMU for cross-compilation
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Install cibuildwheel
run: |
python -m pip install --upgrade pip
pip install cibuildwheel
- name: Build wheels with cibuildwheel
env:
CIBW_PLATFORM: "linux"
CIBW_BUILD: "cp312-*"
CIBW_ARCHS_LINUX: "aarch64"
run: |
cibuildwheel --output-dir wheelhouse
- name: upload wheels
uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl

0 comments on commit d923c5f

Please sign in to comment.