Skip to content

Commit 3ad271d

Browse files
zxqfd555Manul from Pathway
authored andcommitted
delocate wheels in macos builds (#9922)
GitOrigin-RevId: 951252f0621031a4f5c97a5ec552b956a8dcb055
1 parent d1bd1cc commit 3ad271d

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/package_test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ jobs:
9191
args: --release --strip -i python3.10
9292
target: universal2-apple-darwin
9393

94+
- name: Delocate macos wheels
95+
if: ${{ matrix.os == 'selfhosted-macOS'}}
96+
script:
97+
- pip install delocate
98+
- delocate-wheel ./targets/wheels/*.whl
99+
94100
- name: Upload artifact
95101
uses: actions/upload-artifact@v6
96102
with:

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,12 @@ jobs:
138138
args: --release --strip -i python3.10
139139
target: x86_64-apple-darwin
140140

141+
- name: Delocate macos wheels
142+
if: ${{ matrix.os == 'selfhosted-macOS'}}
143+
script:
144+
- pip install delocate
145+
- delocate-wheel ./targets/wheels/*.whl
146+
141147
- name: Build package Ubuntu AArch64
142148
if: ${{ matrix.os == needs.start-runner.outputs.label }}
143149
uses: PyO3/maturin-action@v1

0 commit comments

Comments
 (0)