-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action file to create the pypi wheels on push
cheers @EwoutH your work is very useful to me :D
- Loading branch information
1 parent
ef466ce
commit 936e5e3
Showing
1 changed file
with
50 additions
and
0 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,50 @@ | ||
name: Publish Python bindings | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: messense/maturin-action@v1 | ||
with: | ||
maturin-version: latest | ||
manylinux: auto | ||
command: publish | ||
args: --no-sdist -u hledoux -p ${{ secrets.PASSWORD_PYPI }} | ||
|
||
windows: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: messense/maturin-action@v1 | ||
with: | ||
maturin-version: latest | ||
command: publish | ||
args: --no-sdist -u hledoux -p ${{ secrets.PASSWORD_PYPI }} | ||
|
||
macos: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install aarch64-apple-darwin toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: aarch64-apple-darwin | ||
- uses: messense/maturin-action@v1 | ||
with: | ||
maturin-version: latest | ||
command: publish | ||
args: -i python --no-sdist --universal2 -u hledoux -p ${{ secrets.PASSWORD_PYPI }} |
936e5e3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome, great to see it's portable to other repositories!