-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 }} | ||
|