Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,27 +97,30 @@ jobs:
pixi r pytest
rm -rf build/

# from here to end it's a copy-paste, with few changes, of
# https://github.com/pypa/cibuildwheel/blob/main/examples/github-deploy.yml

build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
# Standard x86 builds
- os: ubuntu-latest
arch: x86_64
# NATIVE ARM builds (No QEMU needed!)
# Note: Uses ubuntu-24.04-arm specifically
- os: ubuntu-24.04-arm
arch: aarch64
- os: macos-latest
arch: auto
- os: windows-latest
arch: auto

steps:
- uses: actions/checkout@v5
with:
submodules: true

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

- name: Install conda on Windows
if: runner.os == 'Windows'
uses: conda-incubator/setup-miniconda@v3
Expand All @@ -131,6 +134,9 @@ jobs:

- name: Build wheels
uses: pypa/cibuildwheel@v3.2.1
env:
# Explicitly set the architecture based on the matrix
CIBW_ARCHS_LINUX: ${{ matrix.arch }}

- uses: actions/upload-artifact@v5
with:
Expand Down
Loading