Skip to content

Commit 478aa08

Browse files
ci: Fix cargo-auditable Linux release wheel builds (#348)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 2156963 commit 478aa08

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ jobs:
7575
run: |
7676
printf '@cargo auditable %%*\n' > "C:/cargo-auditable-wrapper.cmd"
7777
echo "CARGO=C:\\cargo-auditable-wrapper.cmd" >> "$GITHUB_ENV"
78+
- name: Prepare cargo-auditable wrapper (Linux)
79+
# The wrapper itself is created inside the manylinux container by
80+
# `before-script-linux` below; here we only point CARGO at it on the
81+
# host so maturin-action forwards the value via `-e CARGO=...`.
82+
if: github.event_name == 'release' && runner.os == 'Linux'
83+
run: echo "CARGO=/usr/local/bin/cargo-auditable-wrapper" >> "$GITHUB_ENV"
7884
- name: Build wheel
7985
uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0 # zizmor: ignore[cache-poisoning]
8086
with:

0 commit comments

Comments
 (0)