CI: Uses messense/maturin-action

pull/173/head
Tpt 3 years ago
parent 32c873bebc
commit e2b1484789
  1. 26
      .github/workflows/build.yml
  2. 24
      .github/workflows/release.yml

@ -81,12 +81,11 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: true submodules: true
- uses: actions/setup-python@v2 - uses: messense/maturin-action@v1
with: with:
python-version: 3.6 manylinux: auto
- run: pip install 'maturin~=0.12' command: build
- run: maturin build args: -m python/Cargo.toml
working-directory: ./python
python_wheel_mac: python_wheel_mac:
runs-on: macos-latest runs-on: macos-latest
@ -95,13 +94,10 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: true submodules: true
- run: rustup update && rustup target add aarch64-apple-darwin - uses: messense/maturin-action@v1
- uses: actions/setup-python@v2
with: with:
python-version: 3.6 command: build
- run: pip install 'maturin~=0.12' args: -m python/Cargo.toml --universal2
- run: maturin build --universal2
working-directory: ./python
python_wheel_windows: python_wheel_windows:
runs-on: windows-latest runs-on: windows-latest
@ -110,9 +106,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: true submodules: true
- uses: actions/setup-python@v2 - uses: messense/maturin-action@v1
with: with:
python-version: 3.6 command: build
- run: pip install 'maturin~=0.12' args: -m python/Cargo.toml
- run: maturin build
working-directory: ./python

@ -97,8 +97,11 @@ jobs:
with: with:
submodules: true submodules: true
- run: sed -i 's/path="..\/lib", //g' python/Cargo.toml - run: sed -i 's/path="..\/lib", //g' python/Cargo.toml
- run: docker run --rm -v $(pwd):/io konstin2/maturin:v0.11.1 publish -u __token__ -p ${{ secrets.PYPI_PASSWORD }} - uses: messense/maturin-action@v1
working-directory: ./python with:
manylinux: auto
command: publish
args: -m python/Cargo.toml -u __token__ -p ${{ secrets.PYPI_PASSWORD }}
publish_pypi_mac: publish_pypi_mac:
runs-on: macos-latest runs-on: macos-latest
needs: publish_lib_crate needs: publish_lib_crate
@ -106,13 +109,10 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: true submodules: true
- run: rustup update && rustup target add aarch64-apple-darwin - uses: messense/maturin-action@v1
- uses: actions/setup-python@v2
with: with:
python-version: 3.6 command: publish
- run: pip install 'maturin~=0.12' args: -m python/Cargo.toml --universal2 --no-sdist -u __token__ -p ${{ secrets.PYPI_PASSWORD }}
- run: maturin publish --universal2 --no-sdist -u __token__ -p ${{ secrets.PYPI_PASSWORD }}
working-directory: ./python
publish_pypi_windows: publish_pypi_windows:
runs-on: windows-latest runs-on: windows-latest
needs: publish_lib_crate needs: publish_lib_crate
@ -120,12 +120,10 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: true submodules: true
- uses: actions/setup-python@v2 - uses: messense/maturin-action@v1
with: with:
python-version: 3.6 command: publish
- run: pip install 'maturin~=0.12' args: -m python/Cargo.toml --no-sdist -u __token__ -p ${{ secrets.PYPI_PASSWORD }}
- run: maturin publish --no-sdist -u __token__ -p ${{ secrets.PYPI_PASSWORD }}
working-directory: ./python
publish_npm: publish_npm:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

Loading…
Cancel
Save