-
Notifications
You must be signed in to change notification settings - Fork 11
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
6 changed files
with
55 additions
and
17 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 |
---|---|---|
|
@@ -14,35 +14,32 @@ concurrency: | |
|
||
jobs: | ||
build_wheels: | ||
name: ${{ matrix.os }} ${{ matrix.arch }} py${{ matrix.python}} wheels | ||
name: ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.python}} wheels | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: true | ||
strategy: | ||
matrix: | ||
# macos-13 is an intel runner, macos-14 is apple silicon | ||
os: [ubuntu-latest, windows-latest, macos-13, macos-14] | ||
arch: [native] | ||
python: ["*"] | ||
python: ["{cp38,pp*}"] | ||
# Split aarch64 across jobs because it uses emulation (slow) | ||
include: | ||
- os: ubuntu-latest | ||
arch: i686 | ||
python: "*" | ||
python: "{cp38,pp*}" | ||
- os: ubuntu-latest | ||
arch: aarch64 | ||
python: "38" | ||
python: "cp38" | ||
- os: ubuntu-latest | ||
arch: aarch64 | ||
python: "39" | ||
python: "pp38" | ||
- os: ubuntu-latest | ||
arch: aarch64 | ||
python: "310" | ||
python: "pp39" | ||
- os: ubuntu-latest | ||
arch: aarch64 | ||
python: "311" | ||
- os: ubuntu-latest | ||
arch: aarch64 | ||
python: "312" | ||
python: "pp310" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -55,17 +52,19 @@ jobs: | |
if: runner.os == 'Linux' && matrix.arch == 'aarch64' | ||
- uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILDING: "true" | ||
CIBW_ARCHS: ${{ matrix.arch }} # simplest for now | ||
CIBW_BUILD: "{c,p}p${{ matrix.python }}-*" | ||
CIBW_SKIP: "{c,p}p3{6,7}-*" | ||
CIBW_ARCHS: "${{ matrix.arch }}" | ||
CIBW_BUILD: "${{ matrix.python }}-*" | ||
CIBW_TEST_COMMAND: "python -c \"import rtmixer; print(rtmixer.__version__)\"" | ||
# No portaudio on these platforms: | ||
CIBW_TEST_SKIP: "*_i686 *-musllinux_* *_aarch64" | ||
# To enable testing we'd have to bump up to the Almalinux 8-based image: | ||
# CIBW_MANYLINUX_AARCH64_IMAGE: "manylinux_2_28" | ||
CIBW_BUILD_VERBOSITY: "3" | ||
CIBW_BEFORE_TEST_LINUX: "bash {project}/tools/cibw_before_test_linux.sh" | ||
# Use abi3audit to catch issues with Limited API wheels | ||
CIBW_REPAIR_WHEEL_COMMAND: "bash ./tools/cibw_repair_wheel_command.sh {dest_dir} {wheel} {delocate_archs}" | ||
CIBW_ENVIRONMENT_PASS_LINUX: "RUNNER_OS" | ||
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8" | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: cibw-wheels-${{ matrix.os }}-${{ matrix.arch}}-${{ strategy.job-index }} | ||
|
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 |
---|---|---|
|
@@ -4,3 +4,4 @@ src/*.so | |
src/*.egg-info | ||
__pycache__ | ||
.eggs | ||
/dist/ |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" |
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
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
set -xeo pipefail | ||
|
||
DEST_DIR=$1 | ||
WHEEL=$2 | ||
DELOCATE_ARCHS=$3 | ||
if [[ "$RUNNER_OS" == "Linux" ]]; then | ||
auditwheel repair -w $DEST_DIR $WHEEL | ||
elif [[ "$RUNNER_OS" == "macOS" ]]; then | ||
delocate-wheel --require-archs $DELOCATE_ARCHS -w $DEST_DIR -v $WHEEL | ||
else | ||
cp $WHEEL $DEST_DIR | ||
fi | ||
|
||
if [[ "$(python -c 'import platform; print(platform.python_implementation())')" == "CPython" ]]; then | ||
pipx run abi3audit --strict --report $WHEEL | ||
fi |