mirror of https://github.com/mtshiba/pylyzer
Update release.yml
This commit is contained in:
parent
a5435180c0
commit
2390f90fe2
|
|
@ -30,17 +30,20 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- target: armv7-unknown-linux-gnueabihf
|
# - target: armv7-unknown-linux-gnueabihf
|
||||||
os: ubuntu-latest
|
# os: ubuntu-latest
|
||||||
- target: aarch64-unknown-linux-gnu
|
# - target: aarch64-unknown-linux-gnu
|
||||||
os: ubuntu-latest
|
# os: ubuntu-latest
|
||||||
- target: aarch64-apple-darwin
|
# - target: aarch64-apple-darwin
|
||||||
os: macos-latest
|
# os: macos-latest
|
||||||
- target: x86_64-unknown-linux-gnu
|
- target: x86_64-unknown-linux-gnu
|
||||||
|
platform: linux
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
- target: x86_64-apple-darwin
|
- target: x86_64-apple-darwin
|
||||||
|
platform: macos
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
- target: x86_64-pc-windows-msvc
|
- target: x86_64-pc-windows-msvc
|
||||||
|
platform: windows
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
# - target: i686-pc-windows-msvc
|
# - target: i686-pc-windows-msvc
|
||||||
# os: windows-latest
|
# os: windows-latest
|
||||||
|
|
@ -53,13 +56,27 @@ jobs:
|
||||||
- name: setup-tools
|
- name: setup-tools
|
||||||
run: |
|
run: |
|
||||||
rustup update stable
|
rustup update stable
|
||||||
pip3 install twine build
|
pip3 install twine build cibuildwheel setuptools-rust
|
||||||
# rustup target add ${{ matrix.target }}
|
rustup target add ${{ matrix.target }}
|
||||||
|
- name: build
|
||||||
|
run: cibuildwheel --output-dir dist --platform ${{ matrix.platform }}
|
||||||
|
env:
|
||||||
|
# CIBW_BUILD: '${{ matrix.python-version }}-*'
|
||||||
|
# rust doesn't seem to be available for musl linux on i686
|
||||||
|
CIBW_SKIP: '*-musllinux_i686'
|
||||||
|
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH" CARGO_TERM_COLOR="always"'
|
||||||
|
CIBW_ENVIRONMENT_WINDOWS: 'PATH="$UserProfile\.cargo\bin;$PATH"'
|
||||||
|
CIBW_BEFORE_BUILD: rustup show
|
||||||
|
CIBW_BEFORE_BUILD_LINUX: >
|
||||||
|
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y &&
|
||||||
|
rustup show
|
||||||
|
# CIBW_TEST_SKIP: '*-macosx_arm64 *-macosx_universal2:arm64'
|
||||||
|
# CIBW_BUILD_VERBOSITY: 1
|
||||||
- name: upload
|
- name: upload
|
||||||
run: |
|
run: |
|
||||||
cargo build --release
|
twine upload -u mtshiba -p ${{ secrets.PYPI_PASSWORD }} --skip-existing dist/*
|
||||||
python3 -m build --wheel
|
# cargo build --release --target ${{ matrix.target }}
|
||||||
twine upload -u mtshiba -p ${{ secrets.PYPI_PASSWORD }} dist/*
|
# python3 -m build --wheel
|
||||||
# maturin publish -u mtshiba -p ${{ secrets.PYPI_PASSWORD }} --target ${{ matrix.target }} --skip-existing
|
# maturin publish -u mtshiba -p ${{ secrets.PYPI_PASSWORD }} --target ${{ matrix.target }} --skip-existing
|
||||||
upload-assets:
|
upload-assets:
|
||||||
needs: create-release
|
needs: create-release
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -54,7 +54,7 @@ setup(
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
version=version,
|
version=version,
|
||||||
license=license,
|
license=license,
|
||||||
python_requires=">=3",
|
python_requires=">=3.11",
|
||||||
rust_extensions=[
|
rust_extensions=[
|
||||||
RustBin("pylyzer", args=cargo_args, cargo_manifest_args=["--locked"])
|
RustBin("pylyzer", args=cargo_args, cargo_manifest_args=["--locked"])
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue