Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build linux-aarch64 wheels on native arm runners #440

Merged
merged 3 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
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
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