-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v5] Wheel build fixes: manylinux1, trigger upload on release, Linux …
…AArch64 (#2443) * Enable verbose twine upload. * Add step to show downloaded artifacts for debugging. * Sync with next * Sync with next.
- Loading branch information
Showing
3 changed files
with
22 additions
and
14 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: RELEASE BUILD - PyPI 📦 Distribution | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
on: [push, pull_request, release, workflow_dispatch] | ||
|
||
jobs: | ||
build_wheels: | ||
|
@@ -26,7 +26,7 @@ jobs: | |
uses: pypa/[email protected] | ||
env: | ||
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64" | ||
CIBW_ARCHS_LINUX: "x86_64 i686" # ppc64le s390x really slow | ||
CIBW_ARCHS_LINUX: "x86_64 i686 aarch64" # ppc64le s390x really slow | ||
CIBW_ARCHS_WINDOWS: "AMD64" # ARM64 Seems ARM64 will rebuild amd64 wheel for unknow reason. | ||
CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* cp312-*" | ||
CIBW_SKIP: "" | ||
|
@@ -69,17 +69,22 @@ jobs: | |
publish: | ||
needs: [build_wheels] | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags') | ||
if: github.event_name == 'release' && github.event.prerelease == false && github.event.action == 'published' | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
merge-multiple: true | ||
path: dist | ||
|
||
- name: Show downloaded artifacts | ||
run: ls -laR dist | ||
|
||
- name: Publish distribution 📦 to PyPI | ||
if: ${{ success() }} | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
verbose: true | ||
user: __token__ | ||
password: ${{ secrets.pypi_pass }} |
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