Skip to content

Commit

Permalink
wheels: add arm64 builds and bump action versions
Browse files Browse the repository at this point in the history
- add arm64, ppc64le, s390x builds via qemu
- add macos universal2 build
- add windows arm64 build
- bump cancel workflow action to latest to remove nodejs warnings
- bump cibuildwheel action to latest

Signed-off-by: Aaron Shaw <[email protected]>
  • Loading branch information
shawaj committed Apr 10, 2023
1 parent 52fe551 commit 1209f12
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# * https://github.com/actions/upload-artifact
# * https://github.com/marketplace/actions/cancel-workflow-action
# * https://github.com/vmactions/freebsd-vm
# * https://github.com/marketplace/actions/docker-setup-qemu

on: [push, pull_request]
name: build
Expand All @@ -30,29 +31,38 @@ jobs:
matrix:
include:
- os: ubuntu-latest
archs: "x86_64 i686"
archs: "x86_64 i686 aarch64 ppc64le s390x"
- os: macos-12
archs: "x86_64 arm64"
archs: "x86_64 arm64 universal2"
- os: windows-2019
archs: "AMD64"
- os: windows-2019
archs: "ARM64"
- os: windows-2019
archs: "x86"

steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v3
- 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/cibuildwheel@v2.11.2
uses: pypa/cibuildwheel@v2.12.1
env:
CIBW_ARCHS: "${{ matrix.archs }}"
CIBW_TEST_SKIP: "*-*linux_{aarch64,ppc64le,s390x}"

- name: Upload wheels
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -85,7 +95,7 @@ jobs:

steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}

Expand Down Expand Up @@ -115,7 +125,7 @@ jobs:
runs-on: macos-12
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}

Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,11 @@ requires = ["setuptools>=43", "wheel"]
build-backend = "setuptools.build_meta"

[tool.cibuildwheel]
skip = ["pp*", "*-musllinux*"]
test-extras = "test"
test-command = [
"env PYTHONWARNINGS=always PYTHONUNBUFFERED=1 PSUTIL_DEBUG=1 PSUTIL_SCRIPTS_DIR={project}/scripts python {project}/psutil/tests/runner.py",
"env PYTHONWARNINGS=always PYTHONUNBUFFERED=1 PSUTIL_DEBUG=1 PSUTIL_SCRIPTS_DIR={project}/scripts python {project}/psutil/tests/test_memleaks.py"
]

[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]
archs = ["x86_64", "arm64", "universal2"]

0 comments on commit 1209f12

Please sign in to comment.