Skip to content

Commit

Permalink
Update publish workflow (#54)
Browse files Browse the repository at this point in the history
* Fix job naming issue

* Update publish workflow

* Fix duplicate workflow
nph4rd authored Oct 13, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent b237400 commit 110df80
Showing 2 changed files with 71 additions and 36 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/ pythonpublish-linux.yml

This file was deleted.

71 changes: 71 additions & 0 deletions .github/workflows/pythonpublish-linux.yml
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 }}

0 comments on commit 110df80

Please sign in to comment.