- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix job naming issue * Update publish workflow * Fix duplicate workflow
Showing
2 changed files
with
71 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,71 @@ | ||
name: Package & Publish | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
linux-wheels: | ||
runs-on: ubuntu-latest | ||
container: konstin2/maturin | ||
steps: | ||
- name: Build wheel | ||
uses: actions/checkout@v1 | ||
run: | | ||
maturin publish -b cffi --no-sdist -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} --manylinux 2014 | ||
aarch-linux-wheels: | ||
runs-on: ubuntu-latest | ||
container: messense/manylinux_2_24-cross:aarch64 | ||
steps: | ||
- name: Build wheel | ||
uses: actions/checkout@v1 | ||
run: | | ||
curl https://sh.rustup.rs -sSf | bash -s -- -y | ||
source $HOME/.cargo/env | ||
rustup target add aarch64-unknown-linux-gnu | ||
maturin publish -b cffi --no-sdist -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} --manylinux 2014 | ||
osx-wheels: | ||
runs-on: macos-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v1 | ||
- name: Setup Rust environment | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- name: Setup Python environment | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: maturin build | ||
run: | | ||
pip install --upgrade pip | ||
pip install --no-cache-dir cffi maturin==0.11.4 | ||
maturin build -b cffi --release | ||
- name: Publish with Maturin | ||
run: maturin publish -b cffi --no-sdist -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} | ||
windows-wheels: | ||
runs-on: windows-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v1 | ||
- name: Setup Rust environment | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- name: Setup Python environment | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: maturin build | ||
run: | | ||
pip install --upgrade pip | ||
pip install --no-cache-dir cffi maturin==0.11.4 | ||
maturin build -b cffi --release | ||
- name: Publish with Maturin | ||
run: maturin publish -b cffi --no-sdist -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} | ||
|