-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
- Loading branch information
Showing
1 changed file
with
35 additions
and
9 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 |
---|---|---|
|
@@ -123,7 +123,7 @@ jobs: | |
- run: pipx install poetry || true | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
python-version-file: pyproject.toml | ||
cache: "poetry" | ||
- run: poetry install --only=dev | ||
- uses: taiki-e/install-action@v2 | ||
|
@@ -134,18 +134,44 @@ jobs: | |
with: | ||
name: python-cibw-sdist | ||
path: dist/*.tar.gz | ||
build-wheels: | ||
build-wheels-matrix: | ||
# needs: | ||
# - check | ||
# - build | ||
# - test | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- run: pipx install poetry || true | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version-file: pyproject.toml | ||
cache: "poetry" | ||
- run: poetry install --only=dev | ||
- id: set-matrix | ||
name: compute matrix | ||
run: | | ||
MATRIX=$( | ||
{ | ||
cibuildwheel --print-build-identifiers --platform linux --archs x86_64,aarch64,ppc64le,s390x \ | ||
| sed 's/.*/{"cibw-only": "&", "os": "ubuntu-latest"}/' \ | ||
&& cibuildwheel --print-build-identifiers --platform macos --archs x86_64 \ | ||
| sed 's/.*/{"cibw-only": "&", "os": "macos-13" }/' \ | ||
&& cibuildwheel --print-build-identifiers --platform macos --archs arm64 \ | ||
| sed 's/.*/{"cibw-only": "&", "os": "macos-14" }/' \ | ||
} | jq --slurp --compact-output '{"include": .}' | ||
) | ||
echo matrix="$MATRIX" >> $GITHUB_OUTPUT | ||
build-wheels: | ||
needs: | ||
- build-wheels-matrix | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macos-13 # Intel | ||
- macos-14 # Apple silicon | ||
matrix: ${{ fromJson(needs.build-wheels-matrix.outputs.matrix) }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -157,11 +183,11 @@ jobs: | |
platforms: all | ||
- uses: pypa/[email protected] | ||
env: | ||
CIBW_ARCHS_LINUX: x86_64 aarch64 ppc64le s390x | ||
CIBW_BUILD: "${{ matrix.cibw-only }}" | ||
CIBW_BEFORE_ALL_LINUX: "curl -sSf https://sh.rustup.rs | sh -s -- -y && yum install -y krb5-devel clang-devel" | ||
CIBW_BEFORE_ALL_MACOS: "curl -sSf https://sh.rustup.rs | sh -s -- -y && brew install llvm krb5" | ||
CIBW_ENVIRONMENT_LINUX: "PATH=$HOME/.cargo/bin:$PATH" | ||
CIBW_ENVIRONMENT_MACOS: PKG_CONFIG_PATH=/opt/homebrew/opt/krb5/lib/pkgconfig:/usr/local/opt/krb5/lib/pkgconfig MACOSX_DEPLOYMENT_TARGET=14.0 | ||
CIBW_ENVIRONMENT_MACOS: "PKG_CONFIG_PATH=/opt/homebrew/opt/krb5/lib/pkgconfig:/usr/local/opt/krb5/lib/pkgconfig MACOSX_DEPLOYMENT_TARGET=14.0" | ||
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28 | ||
CIBW_MANYLINUX_PYPY_X86_64_IMAGE: manylinux_2_28 | ||
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28 | ||
|