Skip to content

Commit

Permalink
ci: Only build arm64 wheels on releases/manual trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
DownerCase committed Apr 6, 2024
1 parent 514fb5a commit 83d9da3
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Build Wheels

on:
push:
pull_request:
branches:
- master
release:
types: [published]
workflow_dispatch:


jobs:
build_wheels:
Expand All @@ -14,6 +17,28 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
fetch-depth: 0

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS: auto64

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

build_arm64_wheels:
# Emulation takes a long time so we save it for release/manual triggering
name: Build arm64 wheels via emulation
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }}

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -29,9 +54,10 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS_LINUX: auto64 aarch64
CIBW_ARCHS_LINUX: aarch64

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
name: cibw-wheels-arm64
path: ./wheelhouse/*.whl

0 comments on commit 83d9da3

Please sign in to comment.