Skip to content

Commit

Permalink
Add support for arm64 in github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasantony committed Mar 18, 2023
1 parent 48de0ad commit 795086f
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,38 @@
name: Build

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

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
name: ${{ matrix.type }} ${{ matrix.arch }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macOS-11]
os: [macos-latest, ubuntu-latest]
arch: [auto64]
include:
- os: macos-latest
arch: universal2

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
submodules: true

# Used to host cibuildwheel
- uses: actions/setup-python@v3
# Installs poetry
Expand All @@ -25,9 +44,9 @@ jobs:

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value
env:
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
CIBW_TEST_SKIP: '*_arm64 *_universal2:arm64'

- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 795086f

Please sign in to comment.