Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mtshiba committed Sep 10, 2023
1 parent a543518 commit 6389bf6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,20 @@ jobs:
strategy:
matrix:
include:
- target: armv7-unknown-linux-gnueabihf
os: ubuntu-latest
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
- target: aarch64-apple-darwin
os: macos-latest
# - 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
platform: linux
os: ubuntu-latest
- target: x86_64-apple-darwin
platform: macos
os: macos-latest
- target: x86_64-pc-windows-msvc
platform: windows
os: windows-latest
# - target: i686-pc-windows-msvc
# os: windows-latest
Expand All @@ -53,13 +56,14 @@ jobs:
- name: setup-tools
run: |
rustup update stable
pip3 install twine build
# rustup target add ${{ matrix.target }}
pip3 install twine build cibuildwheel setuptools-rust
rustup target add ${{ matrix.target }}
- name: upload
run: |
cargo build --release
python3 -m build --wheel
twine upload -u mtshiba -p ${{ secrets.PYPI_PASSWORD }} dist/*
cibuildwheel --output-dir dist --platform ${{ matrix.platform }}
twine upload -u mtshiba -p ${{ secrets.PYPI_PASSWORD }} --skip-existing dist/*
# cargo build --release --target ${{ matrix.target }}
# python3 -m build --wheel
# maturin publish -u mtshiba -p ${{ secrets.PYPI_PASSWORD }} --target ${{ matrix.target }} --skip-existing
upload-assets:
needs: create-release
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def run(self):
long_description_content_type="text/markdown",
version=version,
license=license,
python_requires=">=3",
python_requires=">=3.11",
rust_extensions=[
RustBin("pylyzer", args=cargo_args, cargo_manifest_args=["--locked"])
],
Expand Down

0 comments on commit 6389bf6

Please sign in to comment.