Skip to content

Commit b3cdcb3

Browse files
Build Linux arm64 wheels
1 parent 37a00ad commit b3cdcb3

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/build_wheels.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,14 @@ jobs:
6060
if-no-files-found: error
6161

6262
build_manylinux_wheels:
63-
name: Wheels (Linux)
64-
runs-on: ubuntu-latest
63+
name: Wheels (Linux ${{ matrix.runs-on[1] }})
64+
runs-on: ${{ matrix.runs-on[0] }}
65+
strategy:
66+
matrix:
67+
runs-on: [
68+
["ubuntu-latest", "x86_64"],
69+
["ubuntu-24.04-arm", "arm64"]
70+
]
6571
steps:
6672
- uses: actions/checkout@v5
6773
with:
@@ -74,8 +80,10 @@ jobs:
7480
- name: Build wheels on Linux
7581
run: pipx run cibuildwheel --output-dir wheelhouse
7682
env:
77-
CIBW_ARCHS_LINUX: x86_64
83+
CIBW_ARCHS_LINUX: ${{ matrix.runs-on[1] }}
7884
CIBW_BEFORE_ALL_LINUX: >
85+
yum -y update &&
86+
yum -y install epel-release &&
7987
yum -y install openblas-devel lapack-devel &&
8088
python install_KLU_Sundials.py
8189
CIBW_BEFORE_BUILD_LINUX: python -m pip install cmake casadi==3.6.7 setuptools wheel pybind11
@@ -88,7 +96,7 @@ jobs:
8896
- name: Upload wheels for Linux
8997
uses: actions/upload-artifact@v4
9098
with:
91-
name: wheels_manylinux
99+
name: wheels_manylinux_${{ matrix.runs-on[1] }}
92100
path: ./wheelhouse/*.whl
93101
if-no-files-found: error
94102

0 commit comments

Comments
 (0)