Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shawaj authored Apr 10, 2023
1 parent 9202290 commit 1dd7a07
Showing 1 changed file with 40 additions and 8 deletions.
48 changes: 40 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
matrix:
include:
- os: ubuntu-latest
archs: "x86_64 i686 aarch64 ppc64le s390x"
archs: "x86_64 i686"
- os: macos-12
archs: "x86_64 arm64 universal2"
- os: windows-2019
Expand All @@ -51,18 +51,11 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Set up QEMU
if: matrix.os == 'ubuntu-latest'
uses: docker/setup-qemu-action@v2
with:
platforms: all

- name: Create wheels + run tests
uses: pypa/[email protected]
env:
CIBW_ARCHS: "${{ matrix.archs }}"
CIBW_TEST_SKIP: "*-*linux_{aarch64,ppc64le,s390x}"

- name: Upload wheels
uses: actions/upload-artifact@v3
Expand All @@ -77,6 +70,45 @@ jobs:
python setup.py sdist
mv dist/psutil*.tar.gz wheelhouse/
py3-qemu:
name: py3-qemu-${{ matrix.os }}-${{ startsWith(matrix.os, 'windows') && matrix.archs || 'all' }}
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
archs: "aarch64 ppc64le s390x"

steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: all

- name: Create wheels + run tests
uses: pypa/[email protected]
env:
CIBW_ARCHS: "${{ matrix.archs }}"
CIBW_TEST_SKIP: "*-*linux_{aarch64,ppc64le,s390x}"

- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: wheelhouse

# Linux + macOS + Python 2
py2:
name: py2-${{ matrix.os }}
Expand Down

0 comments on commit 1dd7a07

Please sign in to comment.