Compare commits

...

10 Commits

Author SHA1 Message Date
David Robertson
f84186eb3a I just want to cry 2022-10-03 16:05:20 +01:00
David Robertson
68aad3d690 Yet another matrix syntax 2022-10-03 15:28:10 +01:00
David Robertson
4fe4d3d548 Please don't run tests 2022-10-03 14:58:24 +01:00
David Robertson
dddc0a6fee Revert "Don't run tests while I'm experimenting"
This reverts commit 84850c1787.
2022-10-03 14:58:03 +01:00
David Robertson
3b73e73ca5 Try another matrix syntax 2022-10-03 14:56:40 +01:00
David Robertson
84850c1787 Don't run tests while I'm experimenting 2022-10-03 14:52:03 +01:00
David Robertson
d04b8976c7 Fix syntax 2022-10-03 14:49:22 +01:00
David Robertson
c22562b916 Try a different matrix syntax 2022-10-03 14:47:40 +01:00
David Robertson
42040d83a4 Changelog 2022-10-03 14:21:39 +01:00
David Robertson
f8b9d0b6dd WIP: build aarch64 wheels on release branches 2022-10-03 14:19:51 +01:00
3 changed files with 27 additions and 2 deletions

View File

@@ -95,6 +95,9 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, macos-10.15]
emulate_aarch64: [false, true]
# is_pr is a flag used to exclude certain jobs from the matrix on PRs.
# It is not read by the rest of the workflow.
is_pr:
- ${{ startsWith(github.ref, 'refs/pull/') }}
@@ -102,21 +105,42 @@ jobs:
# Don't build macos wheels on PR CI.
- is_pr: true
os: "macos-10.15"
# Don't build aarch64 wheels on mac.
- os: "macos-10.15"
emulate_aarch64: true
# Don't build aarch64 wheels on PR CI.
- is_pr: true
emulate_aarch64: true
steps:
- name: Debug
run: echo '${{ toJSON(matrix) }}'
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Set up QEMU to emulate arm64
if: matrix.emulate_aarch64
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.9.0 poetry==1.2.0
# Only build a single wheel in CI.
- name: Set env vars.
- name: "Env: build single wheel for CI"
run: |
echo "CIBW_BUILD="cp37-manylinux_x86_64"" >> $GITHUB_ENV
if: startsWith(github.ref, 'refs/pull/')
# Only build a single wheel in CI.
- name: "Env: build aarch64 wheels"
run: |
echo "CIBW_ARCHS_LINUX=aarch64" >> $GITHUB_ENV
if: matrix.emulate_aarch64
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:

View File

@@ -3,7 +3,7 @@ name: Tests
on:
push:
branches: ["develop", "release-*"]
pull_request:
# pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

1
changelog.d/14016.misc Normal file
View File

@@ -0,0 +1 @@
Build wheels for ARM (aarch64) on release branches.