pyo3 #22
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
# This file is autogenerated by maturin v1.4.0 | ||
# To update, run | ||
# | ||
# maturin generate-ci github --platform linux | ||
# | ||
name: "PyO3 CI" | ||
on: | ||
workflow_run: | ||
workflows: ["Test Suite"] | ||
types: [completed] | ||
branches: | ||
- main | ||
- master | ||
permissions: | ||
contents: read | ||
jobs: | ||
linux: | ||
runs-on: self-hosted | ||
strategy: | ||
matrix: | ||
target: [x86_64, aarch64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
- name: Install C compiler | ||
run: sudo apt-get update && sudo apt-get install -y build-essential | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install Zigbuild | ||
run: pip install cargo-zigbuild | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
args: --release --out dist --zig | ||
sccache: 'true' | ||
container: 'off' | ||
working-directory: pycare | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: pycare/dist | ||
windows: | ||
runs-on: self-hosted | ||
strategy: | ||
matrix: | ||
target: [x64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
architecture: ${{ matrix.target }} | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
args: --release --out dist --zig | ||
sccache: 'true' | ||
container: 'off' | ||
working-directory: pycare | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: pycare/dist | ||
macos: | ||
runs-on: self-hosted | ||
strategy: | ||
matrix: | ||
target: [x86_64, aarch64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
with: | ||
target: ${{ matrix.target }} | ||
args: --release --out dist --zig | ||
sccache: 'true' | ||
container: 'off' | ||
working-directory: pycare | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: pycare/dist | ||