Skip to content

Commit

Permalink
Update build-wheels.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky authored Dec 1, 2022
1 parent 93a3125 commit 179dc47
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,21 @@ on: [push, pull_request]

jobs:
build_wheels:
name: Build wheel - ${{ matrix.cibw.build }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
name: Build wheel - ${{ matrix.cibw.build }} ${{ matrix.os.name }}
runs-on: ${{ matrix.os.runs-on }}
strategy:
fail-fast: false
matrix:
os: [macos-10.15, ubuntu-latest, windows-latest]
os:
- name: macOS
runs-on: macos-10.15
matrix: macos
- name: Linux
runs-on: ubuntu-latest
matrix: linux
- name: Windows
runs-on: windows-latest
matrix: windows
cibw:
# build just supported python versions at December 2021
- build: cp27-*
Expand Down Expand Up @@ -38,6 +47,11 @@ jobs:
group: new
- build: pp39-*
group: new
exclude:
- os:
matrix: windows
cibw:
build: cp27-*

steps:
- name: Cancel previous runs on the same branch
Expand All @@ -61,18 +75,18 @@ jobs:
python -m pip install --upgrade pip
- name: Set up QEMU
if: startsWith(matrix.os, 'ubuntu')
if: matrix.os.matrix == 'linux'
uses: docker/setup-qemu-action@v1
with:
platforms: 'arm64'

- name: Build source distribution with Ubuntu
if: startsWith(matrix.os, 'ubuntu')
if: matrix.os.matrix == 'linux'
run: |
pip install build
python -m build --sdist --outdir dist .
- name: Build ${{ matrix.os }} wheels and test (old)
- name: Build ${{ matrix.os.name }} wheels and test (old)
uses: joerick/[email protected]
if: matrix.cibw.group == 'old'
with:
Expand Down Expand Up @@ -103,7 +117,7 @@ jobs:
CIBW_TEST_COMMAND: >
python -m unittest discover -v -s {package}
- name: Build ${{ matrix.os }} wheels and test (new)
- name: Build ${{ matrix.os.name }} wheels and test (new)
uses: joerick/[email protected]
if: matrix.cibw.group == 'new'
with:
Expand Down

0 comments on commit 179dc47

Please sign in to comment.