Skip to content

Commit

Permalink
Reverting back linux ARM64 from main.
Browse files Browse the repository at this point in the history
  • Loading branch information
vidanovic committed Jan 30, 2025
1 parent 7a91d4e commit 7ef0b59
Showing 1 changed file with 15 additions and 38 deletions.
53 changes: 15 additions & 38 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,50 +104,27 @@ jobs:
path: wheelhouse/*.whl

build_wheels_manylinux_arm64:
name: Build manylinux wheels (ARM64)
name: Build manylinux wheels (arm64)
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ["cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*"]
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: all # Ensures ARM64 is fully supported

- name: Debug - Test ManyLinux Container
run: |
echo "Testing uname -a inside the container..."
docker run --rm --platform linux/aarch64 quay.io/pypa/manylinux_2_28_aarch64 uname -a
echo "Testing Python inside the container..."
docker run --rm --platform linux/aarch64 quay.io/pypa/manylinux_2_28_aarch64 python3 --version
- name: Install cibuildwheel
run: |
python -m pip install --upgrade pip
pip install cibuildwheel
- name: Build wheels with cibuildwheel
env:
CIBW_PLATFORM: "linux"
CIBW_BUILD: ${{ matrix.python-version }}
CIBW_ARCHS_LINUX: "aarch64"
CIBW_MANYLINUX_AARCH64_IMAGE: "quay.io/pypa/manylinux_2_28_aarch64"
CIBW_ENVIRONMENT: "CXXFLAGS='-g -O2 -fno-omit-frame-pointer'"
CIBW_BUILD_VERBOSITY: 3
run: |
cibuildwheel --output-dir wheelhouse
- name: upload wheels
uses: actions/upload-artifact@v4
platforms: arm64

# Build manylinux Python wheels for arm64 architecture
- name: Build manylinux Python wheels (arm64)
uses: RalfG/[email protected]_aarch64
with:
name: wheels-linux-arm64-${{ matrix.python-version }}-${{ github.run_id }}
path: wheelhouse/*.whl



python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312'
build-requirements: 'setuptools'

- name: Upload arm64 wheels
uses: actions/upload-artifact@v3
with:
path: ./dist/*-manylinux*.whl
name: wheels-arm64

0 comments on commit 7ef0b59

Please sign in to comment.