-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use custom branch of py-build-cmake
- Concurrent building for different arch
- Loading branch information
1 parent
a043537
commit e75187f
Showing
2 changed files
with
87 additions
and
7 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ on: | |
- published | ||
|
||
jobs: | ||
build_wheels: | ||
build_wheels_x86: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
|
@@ -25,9 +25,9 @@ jobs: | |
uses: laggykiller/[email protected] | ||
env: | ||
CIBW_BUILD_FRONTEND: build | ||
CIBW_ARCHS_WINDOWS: AMD64 x86 ARM64 | ||
CIBW_ARCHS_MACOS: x86_64 universal2 arm64 | ||
CIBW_ARCHS_LINUX: x86_64 i686 aarch64 ppc64le s390x | ||
CIBW_ARCHS_WINDOWS: AMD64 x86 | ||
CIBW_ARCHS_MACOS: x86_64 | ||
CIBW_ARCHS_LINUX: x86_64 i686 | ||
# If enable stubgen (pyproject.toml), then requires mypy which depends on typed-ast | ||
# typed-ast cannot run on pypy <3.8 | ||
# https://mypy.readthedocs.io/en/stable/faq.html | ||
|
@@ -36,7 +36,87 @@ jobs: | |
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
|
||
build_wheels_arm: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, windows-2019, macos-11] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Build wheels | ||
uses: laggykiller/[email protected] | ||
env: | ||
CIBW_BUILD_FRONTEND: build | ||
CIBW_ARCHS_WINDOWS: ARM64 | ||
CIBW_ARCHS_MACOS: universal2 arm64 | ||
CIBW_ARCHS_LINUX: aarch64 | ||
# If enable stubgen (pyproject.toml), then requires mypy which depends on typed-ast | ||
# typed-ast cannot run on pypy <3.8 | ||
# https://mypy.readthedocs.io/en/stable/faq.html | ||
# CIBW_SKIP: pp37-* | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
|
||
build_wheels_ppc64le: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Build wheels | ||
uses: laggykiller/[email protected] | ||
env: | ||
CIBW_BUILD_FRONTEND: build | ||
CIBW_ARCHS_LINUX: ppc64le | ||
# If enable stubgen (pyproject.toml), then requires mypy which depends on typed-ast | ||
# typed-ast cannot run on pypy <3.8 | ||
# https://mypy.readthedocs.io/en/stable/faq.html | ||
# CIBW_SKIP: pp37-* | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
|
||
build_wheels_s390x: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Build wheels | ||
uses: laggykiller/[email protected] | ||
env: | ||
CIBW_BUILD_FRONTEND: build | ||
CIBW_ARCHS_LINUX: s390x | ||
# If enable stubgen (pyproject.toml), then requires mypy which depends on typed-ast | ||
# typed-ast cannot run on pypy <3.8 | ||
# https://mypy.readthedocs.io/en/stable/faq.html | ||
# CIBW_SKIP: pp37-* | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
|
||
build_sdist: | ||
name: Build source distribution | ||
runs-on: ubuntu-latest | ||
|
@@ -53,7 +133,7 @@ jobs: | |
path: dist/*.tar.gz | ||
|
||
upload_pypi_test: | ||
needs: [build_wheels, build_sdist] | ||
needs: [build_wheels_x86, build_wheels_arm, build_wheels_ppc64le, build_wheels_s390x, build_sdist] | ||
runs-on: ubuntu-latest | ||
# upload to PyPI on every tag starting with 'v' | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | ||
|
@@ -72,7 +152,7 @@ jobs: | |
repository_url: https://test.pypi.org/legacy/ | ||
|
||
upload_pypi: | ||
needs: [build_wheels, build_sdist] | ||
needs: [build_wheels_x86, build_wheels_arm, build_wheels_ppc64le, build_wheels_s390x, build_sdist] | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
steps: | ||
|
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