Skip to content

Commit

Permalink
ci(actions): build seperate whl for macOS (#8127)
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Kowalski <[email protected]>
GitOrigin-RevId: dd9dc572ea0440c22efde3946daf2809c2dcf900
  • Loading branch information
2 people authored and Manul from Pathway committed Jan 31, 2025
1 parent 0a1b449 commit 36b9ec2
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,19 @@ jobs:
with:
command: build
args: --release --strip
target: universal2-apple-darwin
target: aarch64-apple-darwin

- name: Build package macos x86_64
if: ${{ matrix.os == 'selfhosted-macOS'}}
uses: PyO3/maturin-action@v1
env:
MACOSX_DEPLOYMENT_TARGET: "10.15"
DEVELOPER_DIR: /Library/Developer/CommandLineTools
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
with:
command: build
args: --release --strip
target: x86_64-apple-darwin

- name: Build package Ubuntu AArch64
if: ${{ matrix.os == needs.start-runner.outputs.label }}
Expand Down Expand Up @@ -138,7 +150,7 @@ jobs:
if: ${{ matrix.os == 'selfhosted-macOS' }}
uses: actions/upload-artifact@v4
with:
name: pathway-arm64
name: pathway-macOS
path: ./target/wheels/

- name: Upload artifact
Expand Down Expand Up @@ -210,7 +222,7 @@ jobs:
- uses: actions/download-artifact@v4
if: ${{ matrix.os == 'selfhosted-macOS' }}
with:
name: pathway-arm64
name: pathway-macOS
path: ./wheels/

- uses: actions/download-artifact@v4
Expand All @@ -226,7 +238,11 @@ jobs:
rm -rf "${ENV_NAME}"
python"${{ matrix.python-version }}" -m venv "${ENV_NAME}"
source "${ENV_NAME}/bin/activate"
WHEEL=(./wheels/pathway-*.whl)
if [[ "${{ matrix.os }}" == 'selfhosted-macOS' ]]; then
WHEEL=(./wheels/pathway-*arm64.whl)
else
WHEEL=(./wheels/pathway-*aarch64.whl)
fi
pip install -U pip
export PATHWAY_MONITORING_HTTP_PORT=20099
export LLAMA_READER_PORT=8799
Expand Down Expand Up @@ -283,7 +299,7 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: pathway-arm64
name: pathway-macOS
path: ./wheels/

- uses: actions/download-artifact@v4
Expand Down

0 comments on commit 36b9ec2

Please sign in to comment.