Skip to content

Commit

Permalink
Try Linux arm64 wheels with GLIBC 2.28
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Jun 7, 2024
1 parent b4f8380 commit e8f0ea4
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,12 @@ jobs:
if-no-files-found: error

build_manylinux_wheels:
name: Wheels (linux-amd64)
name: Wheels (manylinux/${{ matrix.arch }})
runs-on: ubuntu-latest
strategy:
matrix:
arch: [x86_64, aarch64]
fail-fast: false
steps:
- uses: actions/checkout@v4
name: Check out PyBaMM repository
Expand All @@ -109,12 +113,20 @@ jobs:
- name: Clone pybind11 repo (no history)
run: git clone --depth 1 --branch v2.11.1 https://github.com/pybind/pybind11.git

- name: Setup QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Build wheels on Linux
run: pipx run cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS_LINUX: x86_64
CIBW_BEFORE_ALL_LINUX: >
yum -y install openblas-devel lapack-devel &&
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_BEFORE_ALL_LINUX: |
yum -y update
yum -y install epel-release
yum -y install openblas-devel lapack-devel
bash scripts/install_sundials.sh 6.0.3 6.5.0
CIBW_BEFORE_BUILD_LINUX: python -m pip install cmake casadi setuptools wheel
CIBW_REPAIR_WHEEL_COMMAND_LINUX: auditwheel repair -w {dest_dir} {wheel}
Expand Down

0 comments on commit e8f0ea4

Please sign in to comment.