Skip to content

Commit 5754573

Browse files
committed
ci: let the macOS sqb wheel build reuse the extension's crates
1 parent c4fdda9 commit 5754573

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/build-distributions.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@ jobs:
135135
manylinux: auto
136136
- uses: PyO3/maturin-action@v1
137137
if: inputs.prebuilt-run-id == ''
138+
# On macOS maturin links the extension with these flags for every crate, which changes
139+
# their build hash. Passing the same flags here lets sqb reuse the crates the extension
140+
# build just compiled instead of compiling them again; sqb has no undefined symbols, and
141+
# the smoke test below runs it.
142+
env:
143+
RUSTFLAGS: >-
144+
${{ runner.os == 'macOS' && '-C link-arg=-undefined -C link-arg=dynamic_lookup' || '' }}
138145
with:
139146
command: build
140147
args: >-

0 commit comments

Comments
 (0)