Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Jun 14, 2024
1 parent fb31937 commit ed227f5
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,27 @@ concurrency:
jobs:
# Linux + macOS + Windows Python 3
py3:
name: "py3, ${{ matrix.os }}, ${{ matrix.archs }}"
name: "py3-${{ matrix.os }}-${{ matrix.arch }}"
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
archs: "x86_64 i686"
arch: "x86_64"
- os: ubuntu-latest
archs: "aarch64"
arch: "i686"
- os: ubuntu-latest
arch: "aarch64"
- os: macos-12
archs: "x86_64"
arch: "x86_64"
- os: macos-14
archs: "arm64"
arch: "arm64"
- os: windows-2019
archs: "AMD64"
arch: "AMD64"
- os: windows-2019
archs: "x86"
arch: "x86"
steps:
- uses: actions/checkout@v4

Expand All @@ -55,18 +57,18 @@ jobs:

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
if: matrix.archs == 'aarch64'
if: matrix.arch == 'aarch64'

- name: Create wheels + run tests
uses: pypa/cibuildwheel@v2.18.0
env:
CIBW_ARCHS: "${{ matrix.archs }}"
CIBW_ARCHS: "${{ matrix.arch }}"
CIBW_PRERELEASE_PYTHONS: True

- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-py3-${{ matrix.os }}-${{ startsWith(matrix.os, 'ubuntu') && 'all' || matrix.archs }}
name: wheels-py3-${{ matrix.os }}-${{ matrix.arch }}
path: wheelhouse

- name: Generate .tar.gz
Expand Down

0 comments on commit ed227f5

Please sign in to comment.