Skip to content

Commit c5306fc

Browse files
committed
ci : add FRAMEWORK_FOLDER_PATH to xcodebuild command
This commit adds FRAMEWORK_FOLDER_PATH to xcodebuild command in the xcodebuild commands so that the framwork can be found. It also removes the installing of llama.cpp to the system as that is not needed anymore and the xcodebuild/xcode builds will use the framework instead.
1 parent 9f5018d commit c5306fc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,6 @@ jobs:
702702
-DLLAMA_BUILD_SERVER=OFF \
703703
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
704704
cmake --build build --config Release -j $(sysctl -n hw.logicalcpu)
705-
sudo cmake --install build --config Release
706705
707706
- name: xcodebuild for swift package
708707
id: xcodebuild
@@ -1328,15 +1327,14 @@ jobs:
13281327
-DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 \
13291328
-DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=ggml
13301329
cmake --build build --config Release -j $(sysctl -n hw.logicalcpu) -- CODE_SIGNING_ALLOWED=NO
1331-
sudo cmake --install build --config Release
13321330
13331331
- name: xcodebuild for swift package
13341332
id: xcodebuild
13351333
run: |
13361334
./build-xcframework.sh
13371335
13381336
- name: Build Xcode project
1339-
run: xcodebuild -project examples/llama.swiftui/llama.swiftui.xcodeproj -scheme llama.swiftui -sdk iphoneos CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= -destination 'generic/platform=iOS' build
1337+
run: xcodebuild -project examples/llama.swiftui/llama.swiftui.xcodeproj -scheme llama.swiftui -sdk iphoneos CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= -destination 'generic/platform=iOS' FRAMEWORK_FOLDER_PATH=./build-ios build
13401338

13411339
android-build:
13421340
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)