-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ on: | |
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- rel-* | ||
- main | ||
- rel-* | ||
pull_request: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
|
@@ -20,31 +20,23 @@ jobs: | |
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12.x" | ||
python-version: '3.12.x' | ||
|
||
- name: Install the python wheel and dependencies | ||
run: | | ||
python3 -m venv genai-macos-venv | ||
source genai-macos-venv/bin/activate | ||
python3 -m pip install requests | ||
- name: Install Rust Toolchain | ||
uses: dtolnay/[email protected] | ||
|
||
- name: Install Rust target | ||
run: | | ||
rustup target add aarch64-apple-ios-sim | ||
- name: Run iOS Build | ||
run: | | ||
set -e -x | ||
source genai-macos-venv/bin/activate | ||
export PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib:$PATH | ||
export LIBRARY_PATH="$LIBRARY_PATH:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib" # Needed for Rust compilation and linking | ||
python3 build.py --ios \ | ||
--parallel \ | ||
--apple_sysroot iphonesimulator \ | ||
--osx_arch arm64 \ | ||
--apple_deploy_target 15.4 \ | ||
--cmake_generator 'Xcode' \ | ||
--build_dir build_iphonesimulator | ||
--build_dir build_iphonesimulator \ | ||
--use_guidance=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters