Skip to content

Commit 36b9ec2

Browse files
pw-ppodhajskivoodoo11
authored andcommitted
ci(actions): build seperate whl for macOS (#8127)
Co-authored-by: Jakub Kowalski <kuba@pathway.com> GitOrigin-RevId: dd9dc572ea0440c22efde3946daf2809c2dcf900
1 parent 0a1b449 commit 36b9ec2

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,19 @@ jobs:
105105
with:
106106
command: build
107107
args: --release --strip
108-
target: universal2-apple-darwin
108+
target: aarch64-apple-darwin
109+
110+
- name: Build package macos x86_64
111+
if: ${{ matrix.os == 'selfhosted-macOS'}}
112+
uses: PyO3/maturin-action@v1
113+
env:
114+
MACOSX_DEPLOYMENT_TARGET: "10.15"
115+
DEVELOPER_DIR: /Library/Developer/CommandLineTools
116+
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
117+
with:
118+
command: build
119+
args: --release --strip
120+
target: x86_64-apple-darwin
109121

110122
- name: Build package Ubuntu AArch64
111123
if: ${{ matrix.os == needs.start-runner.outputs.label }}
@@ -138,7 +150,7 @@ jobs:
138150
if: ${{ matrix.os == 'selfhosted-macOS' }}
139151
uses: actions/upload-artifact@v4
140152
with:
141-
name: pathway-arm64
153+
name: pathway-macOS
142154
path: ./target/wheels/
143155

144156
- name: Upload artifact
@@ -210,7 +222,7 @@ jobs:
210222
- uses: actions/download-artifact@v4
211223
if: ${{ matrix.os == 'selfhosted-macOS' }}
212224
with:
213-
name: pathway-arm64
225+
name: pathway-macOS
214226
path: ./wheels/
215227

216228
- uses: actions/download-artifact@v4
@@ -226,7 +238,11 @@ jobs:
226238
rm -rf "${ENV_NAME}"
227239
python"${{ matrix.python-version }}" -m venv "${ENV_NAME}"
228240
source "${ENV_NAME}/bin/activate"
229-
WHEEL=(./wheels/pathway-*.whl)
241+
if [[ "${{ matrix.os }}" == 'selfhosted-macOS' ]]; then
242+
WHEEL=(./wheels/pathway-*arm64.whl)
243+
else
244+
WHEEL=(./wheels/pathway-*aarch64.whl)
245+
fi
230246
pip install -U pip
231247
export PATHWAY_MONITORING_HTTP_PORT=20099
232248
export LLAMA_READER_PORT=8799
@@ -283,7 +299,7 @@ jobs:
283299

284300
- uses: actions/download-artifact@v4
285301
with:
286-
name: pathway-arm64
302+
name: pathway-macOS
287303
path: ./wheels/
288304

289305
- uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)