Skip to content

Commit

Permalink
Build linux-aarch64 wheels on native arm runners (#440)
Browse files Browse the repository at this point in the history
* Build linux-aarch64 wheels on native arm machine

* Harmonize CI triggers across workflows

* Oops
  • Loading branch information
stanmart authored Jan 30, 2025
1 parent e791633 commit db3b1b2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Build and upload to PyPI

on:
pull_request:
push:
branches:
- "main"
tags:
- "*"
release:
types:
- published
Expand All @@ -12,28 +17,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-13, macos-14]
os: [ubuntu-22.04, ubuntu-22.04-arm, windows-2019, macos-13, macos-14]

steps:
- uses: actions/checkout@v4
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all
image: tonistiigi/binfmt:qemu-v8.1.5
- name: Set up micromamba
uses: mamba-org/setup-micromamba@0dea6379afdaffa5d528b3d1dabc45da37f443fc
- name: Build wheels
if: github.event_name != 'release'
uses: pypa/[email protected]
env:
CIBW_ARCHS_LINUX: auto
- name: Build wheels (release)
if: github.event_name == 'release' && github.event.action == 'published'
uses: pypa/[email protected]
env:
CIBW_ARCHS_LINUX: x86_64 aarch64
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/conda-build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: conda-build
on:
# We would like to trigger for CI for any pull request action -
# both from QuantCo's branches as well as forks.
pull_request:
branches:
- main
# In addition to pull requests, we want to run CI for pushes
# to the main branch and tags.
push:
branches:
- main
- "main"
tags:
- "*"

jobs:
conda-build:
Expand Down

0 comments on commit db3b1b2

Please sign in to comment.