Skip to content

Commit

Permalink
Fix the broken Linux ARM builds (#112)
Browse files Browse the repository at this point in the history
* try with native builds

* don't build linux arm on amd64
  • Loading branch information
cdiener authored Mar 4, 2025
1 parent 476637d commit 4ae6798
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13]

name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand All @@ -32,14 +32,8 @@ jobs:
if: runner.os == 'Windows'
run: choco install swig -f -y

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Build wheels
uses: pypa/cibuildwheel@v2.22.0
uses: pypa/cibuildwheel@v2.23.0
env:
NEW_GLPK_VERSION: ${{ inputs.glpk_version }}
GLPK_HEADER_PATH: glpk-${{ inputs.glpk_version }}/src
Expand All @@ -51,7 +45,7 @@ jobs:
CIBW_BEFORE_BUILD_MACOS: source {project}/config.sh && IS_OSX=true pre_build
CIBW_BEFORE_BUILD_WINDOWS: rm -rf glpk_build && python -m pip install setuptools && python scripts/build_glpk.py
CIBW_ARCHS_MACOS: "arm64 x86_64"
CIBW_ARCHS_LINUX: "auto aarch64"
CIBW_ARCHS_LINUX: "auto"
CIBW_SKIP: pp* *-musllinux* cp36-* cp37-*
# install before tests
CIBW_TEST_COMMAND: cp {project}/test_swiglpk.py . && python test_swiglpk.py
Expand Down

0 comments on commit 4ae6798

Please sign in to comment.