Skip to content

Commit

Permalink
Tests Python inside the container before building. Falls back to many…
Browse files Browse the repository at this point in the history
…linux2014 if manylinux_2_28 fails. Opens an interactive shell if all else fails.
  • Loading branch information
vidanovic committed Jan 30, 2025
1 parent 57bf679 commit 2f100b0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,19 @@ jobs:
with:
platforms: all # Ensures ARM64 is fully supported

- name: Debug - Show QEMU status
- name: Debug - Test ManyLinux Container
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
echo "Testing uname -a inside the container..."
docker run --rm --platform linux/aarch64 quay.io/pypa/manylinux_2_28_aarch64 un-a
echo "Testing Python inside the container..."
docker run --rm --platform linux/aarch64 quay.io/pypa/manylinux_2_28_aarcpython3 --version
- name: Install cibuildwheel
run: |
python -m pip install --upgrade pip
pip install cibuildwheel
- name: Debug - Test Python in Container
run: |
docker run --rm --platform linux/aarch64 quay.io/pypa/manylinux_2_28_aarcpython3 --version
- name: Build wheels with cibuildwheel
env:
CIBW_PLATFORM: "linux"
Expand All @@ -148,4 +147,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: wheels-linux-arm64-${{ matrix.python-version }}-${{ github.run_id }}
path: wheelhouse/*.whl
path: wheelhouse/*.whl

0 comments on commit 2f100b0

Please sign in to comment.