From c9cce037176124c28fe822b7e335e3762dcaf1ba Mon Sep 17 00:00:00 2001 From: Brendan O'Donoghue Date: Mon, 24 Nov 2025 19:01:49 +0000 Subject: [PATCH 1/2] attempt to speed up ubuntu wheel builds --- .github/workflows/build.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c33042b..3026fc6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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-large + 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 @@ -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: From 8840b1b3f7cef6acf665d8c7194c81fb6f05e8f2 Mon Sep 17 00:00:00 2001 From: Brendan O'Donoghue Date: Mon, 24 Nov 2025 19:08:26 +0000 Subject: [PATCH 2/2] revert from ubuntu latest large to ubuntu latest --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3026fc6..20928a7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -105,7 +105,7 @@ jobs: matrix: include: # Standard x86 builds - - os: ubuntu-latest-large + - os: ubuntu-latest arch: x86_64 # NATIVE ARM builds (No QEMU needed!) # Note: Uses ubuntu-24.04-arm specifically