Skip to content

Commit

Permalink
disable on ios ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Taka152 committed Dec 18, 2024
1 parent 82d33e5 commit 3498e0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/ios-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
2 changes: 2 additions & 0 deletions test/c_api_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ TEST(CAPITests, RewindGptFp32CAPI) {
EXPECT_TRUE(0 == std::memcmp(expected_output_start, sequence_data, sequence_length * sizeof(int32_t)));
}

#if USE_GUIDANCE
TEST(CAPITests, SetGuidance) {
#if TEST_PHI2

Expand All @@ -770,3 +771,4 @@ TEST(CAPITests, SetGuidance) {

#endif
}
#endif

0 comments on commit 3498e0e

Please sign in to comment.