-
-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move cibuildwheel config to pyproject.toml
- Loading branch information
Showing
3 changed files
with
105 additions
and
16 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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
paths-ignore: | ||
- '**.rst' | ||
|
||
jobs: | ||
x86_64: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-22.04 | ||
python-version: 3.8 | ||
- os: ubuntu-22.04 | ||
python-version: '3.12' | ||
- os: ubuntu-22.04 | ||
python-version: 'pypy3.9' | ||
- os: macos-latest | ||
python-version: 3.8 | ||
|
||
steps: | ||
- name: Checkout pygit2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Linux | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt install tinyproxy | ||
LIBSSH2_VERSION=1.11.0 LIBGIT2_VERSION=1.7.1 /bin/sh build.sh test | ||
- name: macOS | ||
if: runner.os == 'macOS' | ||
run: | | ||
export OPENSSL_PREFIX=`brew --prefix [email protected]` | ||
LIBSSH2_VERSION=1.11.0 LIBGIT2_VERSION=1.7.1 /bin/sh build.sh test | ||
aarch64: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build & test | ||
uses: uraimo/run-on-arch-action@v2 | ||
with: | ||
arch: aarch64 | ||
distro: ubuntu20.04 | ||
install: | | ||
apt-get update -q -y | ||
apt-get install -q -y cmake libssl-dev python3-dev python3-venv wget | ||
run: | | ||
LIBSSH2_VERSION=1.11.0 LIBGIT2_VERSION=1.7.1 /bin/sh build.sh test | ||
s390x: | ||
runs-on: ubuntu-22.04 | ||
if: github.ref == 'refs/heads/master' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build & test | ||
uses: uraimo/run-on-arch-action@v2 | ||
with: | ||
arch: s390x | ||
distro: ubuntu20.04 | ||
install: | | ||
apt-get update -q -y | ||
apt-get install -q -y cmake libssl-dev python3-dev python3-venv wget | ||
run: | | ||
LIBSSH2_VERSION=1.11.0 LIBGIT2_VERSION=1.7.1 /bin/sh build.sh test | ||
continue-on-error: true # Tests are expected to fail, see issue #812 |
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 |
---|---|---|
@@ -1,2 +1,25 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
|
||
[tool.cibuildwheel] | ||
skip = "pp3*" | ||
|
||
archs = ["auto"] | ||
build-frontend = "default" | ||
dependency-versions = "pinned" | ||
environment = {LIBGIT2_VERSION="1.7.1", LIBSSH2_VERSION="1.11.0", OPENSSL_VERSION="3.1.3", LIBGIT2="/project/ci"} | ||
|
||
before-all = "sh build.sh" | ||
|
||
[tool.cibuildwheel.linux] | ||
repair-wheel-command = "LD_LIBRARY_PATH=/project/ci/lib64 auditwheel repair -w {dest_dir} {wheel}" | ||
archs = ["x86_64", "aarch64"] | ||
|
||
[[tool.cibuildwheel.overrides]] | ||
select = "*-musllinux*" | ||
repair-wheel-command = "LD_LIBRARY_PATH=/project/ci/lib auditwheel repair -w {dest_dir} {wheel}" | ||
|
||
[tool.cibuildwheel.macos] | ||
environment = {LIBGIT2_VERSION="1.7.1", LIBSSH2_VERSION="1.11.0", OPENSSL_VERSION="3.1.3", LIBGIT2="/Users/runner/work/pygit2/pygit2/ci"} | ||
repair-wheel-command = "DYLD_LIBRARY_PATH=/Users/runner/work/pygit2/pygit2/ci/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}" | ||
archs = ["universal2"] |