Skip to content

Commit dadea81

Browse files
committed
ci: fix maturin container property in build-wheel
1 parent a47348e commit dadea81

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/actions/build-wheel/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ inputs:
99
required: false
1010
before-script-linux:
1111
required: false
12+
maturin-container:
13+
description: Container option passed to PyO3/maturin-action (e.g. "off" to disable)
14+
required: false
15+
default: ""
1216
runs:
1317
using: "composite"
1418
steps:
@@ -19,4 +23,5 @@ runs:
1923
target: ${{ inputs.target }}
2024
args: ${{ inputs.args }}
2125
manylinux: ${{ inputs.manylinux }}
26+
container: ${{ inputs.maturin-container }}
2227
before-script-linux: ${{ inputs.before-script-linux }}

.github/workflows/build-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ jobs:
101101
target: ${{ matrix.platform.target }}
102102
args: --release --out dist --find-interpreter
103103
manylinux: ${{ matrix.platform.manylinux }}
104+
# set maturin's container to "off" when using the job-level container (musl)
105+
maturin-container: ${{ matrix.platform.is-musl && 'off' || '' }}
104106
before-script-linux: ${{ matrix.platform.before-script }}
105107
- uses: ./.github/actions/upload-wheels
106108
with:

0 commit comments

Comments
 (0)