Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Updated workflow to run qemu when building the Linux aarch64 wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
MintoDA1 authored and MintoDA1 committed Sep 8, 2023
1 parent beedb78 commit ed6165f
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
name: swiftest

on: push
on: [push, pull_request]

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-11, macos-12, macos-13]
os: [ubuntu-latest, macos-11, macos-12, macos-13]
cibw_archs: [x86_64]
include:
- os: ubuntu-latest
cibw_archs: "aarch64"
env:
SYSTEM_VERSION_COMPAT: 0

steps:
- name: Set up QEMU
if: matrix.cibw_archs == 'aarch64'
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- uses: actions/checkout@v3

- name: Build wheels
uses: pypa/cibuildwheel@v2.15.0
env:
CIBW_ARCHS_MACOS: x86_64
CIBW_ARCHS_LINUX: x86_64 aarch64
CIBW_ARCHS: ${{ matrix.cibw_archs }}
with:
package-dir: .
output-dir: wheelhouse
Expand Down

0 comments on commit ed6165f

Please sign in to comment.