-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b70c1a8
commit 3b42bc8
Showing
1 changed file
with
106 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,42 +4,121 @@ on: | |
push: | ||
tags: [ 'v*' ] | ||
|
||
env: | ||
PYTHON_VERSION: "3.11" | ||
CARGO_INCREMENTAL: 0 | ||
CARGO_NET_RETRY: 10 | ||
CARGO_TERM_COLOR: always | ||
RUSTUP_MAX_RETRIES: 10 | ||
|
||
jobs: | ||
|
||
sdist: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- name: "Build sdist" | ||
uses: PyO3/[email protected] | ||
with: | ||
command: build | ||
args: --out dist | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
|
||
macos-x86_64: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
architecture: x64 | ||
- name: "Build wheels - x86_64" | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: x86_64 | ||
args: --release --out dist | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
|
||
macos-universal: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
architecture: x64 | ||
- name: "Build wheels - universal" | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
args: --release --target universal2-apple-darwin --out dist | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
|
||
windows: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
platform: | ||
- target: x86_64-pc-windows-msvc | ||
arch: x64 | ||
- target: i686-pc-windows-msvc | ||
arch: x86 | ||
- target: aarch64-pc-windows-msvc | ||
arch: x64 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
architecture: ${{ matrix.platform.arch }} | ||
- name: "Build wheels" | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.platform.target }} | ||
args: --release --out dist | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
|
||
linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: PyO3/[email protected] | ||
with: | ||
manylinux: auto | ||
command: build | ||
args: --release -o dist -i python3.8 | ||
- uses: PyO3/[email protected] | ||
with: | ||
manylinux: auto | ||
command: build | ||
args: --release -o dist -i python3.9 | ||
- uses: PyO3/[email protected] | ||
with: | ||
manylinux: auto | ||
command: build | ||
args: --release -o dist -i python3.10 | ||
- uses: PyO3/[email protected] | ||
with: | ||
manylinux: auto | ||
command: build | ||
args: --release -o dist -i python3.11 | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: wheels | ||
path: dist | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- uses: PyO3/[email protected] | ||
with: | ||
manylinux: auto | ||
command: build | ||
args: --release -o dist | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: wheels | ||
path: dist | ||
|
||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
if: "startsWith(github.ref, 'refs/tags/')" | ||
needs: [ linux ] | ||
needs: [ linux, windows, macos-x86_64, macos-universal, sdist ] | ||
steps: | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
|