Update release.yml

This commit is contained in:
Shunsuke Shibayama 2023-04-02 18:05:04 +09:00
parent 491144941f
commit 91b8ba4ca3
1 changed files with 27 additions and 0 deletions

View File

@ -16,3 +16,30 @@ jobs:
- uses: taiki-e/create-gh-release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
pypi:
strategy:
matrix:
include:
## permission denied?
# - target: armv7-unknown-linux-gnueabihf
# os: ubuntu-latest
# - target: aarch64-unknown-linux-gnu
# os: ubuntu-latest
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: setup-tools
run: |
rustup update stable
pip install maturin
- name: upload
run: |
maturin publish --release --target ${{ matrix.target }} -u mtshiba -p ${{ secrets.PYPI_PASSWORD }}