Skip to content

pyo3

pyo3 #22

Workflow file for this run

# 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:

Check failure on line 83 in .github/workflows/pyo3.yml

View workflow run for this annotation

GitHub Actions / PyO3 CI

Invalid workflow file

The workflow is not valid. .github/workflows/pyo3.yml (Line: 83, Col: 9): 'with' is already defined
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