Skip to content
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,21 @@ jobs:
environments: build
- name: Set version
run: pixi run -e build set-version
- name: Install cargo-auditable
if: ${{ github.event_name == 'release' && !contains(matrix.os, 'ubuntu') }}
run: cargo install cargo-auditable
Comment thread
delsner marked this conversation as resolved.
Outdated
- name: Build wheel
uses: PyO3/maturin-action@04ac600d27cdf7a9a280dadf7147097c42b757ad # v1.50.1
env:
# cargo-auditable and sccache both wrap rustc and cannot be composed.
# Only embed audit metadata for release builds; use sccache otherwise.
RUSTC_WORKSPACE_WRAPPER: ${{ github.event_name == 'release' && 'cargo-auditable' || '' }}
Comment thread
delsner marked this conversation as resolved.
Outdated
with:
command: build
args: --out dist --release -i python3.10
manylinux: auto
sccache: true
sccache: ${{ github.event_name != 'release' }}
before-script-linux: ${{ github.event_name == 'release' && 'cargo install cargo-auditable' || '' }}
Comment thread
delsner marked this conversation as resolved.
Outdated
- name: Check package
run: pixi run -e build check-wheel
- name: Upload package
Expand Down
Loading