forked from ggerganov/llama.cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "llama : use cmake for swift build (ggerganov#10525)"
This reverts commit 43ed389.
- Loading branch information
Showing
7 changed files
with
131 additions
and
81 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 |
---|---|---|
|
@@ -552,44 +552,35 @@ jobs: | |
-DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=ggml | ||
cmake --build . --config Release -j $(sysctl -n hw.logicalcpu) -- CODE_SIGNING_ALLOWED=NO | ||
macOS-latest-swift: | ||
runs-on: macos-latest | ||
|
||
strategy: | ||
matrix: | ||
destination: ['generic/platform=macOS', 'generic/platform=iOS', 'generic/platform=tvOS'] | ||
|
||
steps: | ||
- name: Clone | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Dependencies | ||
id: depends | ||
continue-on-error: true | ||
run: | | ||
brew update | ||
- name: Build llama.cpp with CMake | ||
id: cmake_build | ||
run: | | ||
sysctl -a | ||
mkdir build | ||
cd build | ||
cmake -G Xcode .. \ | ||
-DGGML_METAL_USE_BF16=ON \ | ||
-DGGML_METAL_EMBED_LIBRARY=ON \ | ||
-DLLAMA_BUILD_EXAMPLES=OFF \ | ||
-DLLAMA_BUILD_TESTS=OFF \ | ||
-DLLAMA_BUILD_SERVER=OFF \ | ||
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" | ||
cmake --build . --config Release -j $(sysctl -n hw.logicalcpu) | ||
sudo cmake --install . --config Release | ||
- name: xcodebuild for swift package | ||
id: xcodebuild | ||
run: | | ||
xcodebuild -scheme llama-Package -destination "${{ matrix.destination }}" | ||
# TODO: tmp disabled. see for possible re-enable: | ||
# https://github.com/ggerganov/llama.cpp/pull/10525 | ||
# macOS-latest-swift: | ||
# runs-on: macos-latest | ||
# | ||
# strategy: | ||
# matrix: | ||
# destination: ['generic/platform=macOS', 'generic/platform=iOS', 'generic/platform=tvOS'] | ||
# | ||
# steps: | ||
# - name: Clone | ||
# id: checkout | ||
# uses: actions/checkout@v4 | ||
# | ||
# - name: Dependencies | ||
# id: depends | ||
# continue-on-error: true | ||
# run: | | ||
# brew update | ||
# | ||
# - name: xcodebuild for swift package | ||
# id: xcodebuild | ||
# run: | | ||
# xcodebuild -scheme llama -destination "${{ matrix.destination }}" | ||
# | ||
# - name: Build Swift Example | ||
# id: make_build_swift_example | ||
# run: | | ||
# make swift | ||
|
||
windows-msys2: | ||
runs-on: windows-latest | ||
|
@@ -1113,29 +1104,6 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build | ||
id: cmake_build | ||
run: | | ||
sysctl -a | ||
mkdir build | ||
cd build | ||
cmake -G Xcode .. \ | ||
-DGGML_METAL_USE_BF16=ON \ | ||
-DGGML_METAL_EMBED_LIBRARY=ON \ | ||
-DLLAMA_BUILD_EXAMPLES=OFF \ | ||
-DLLAMA_BUILD_TESTS=OFF \ | ||
-DLLAMA_BUILD_SERVER=OFF \ | ||
-DCMAKE_SYSTEM_NAME=iOS \ | ||
-DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 \ | ||
-DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=ggml | ||
cmake --build . --config Release -j $(sysctl -n hw.logicalcpu) -- CODE_SIGNING_ALLOWED=NO | ||
sudo cmake --install . --config Release | ||
- name: xcodebuild for swift package | ||
id: xcodebuild | ||
run: | | ||
xcodebuild -scheme llama-Package -destination 'generic/platform=iOS' | ||
- name: Build Xcode project | ||
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 | ||
|
||
|
@@ -1163,6 +1131,23 @@ jobs: | |
./gradlew build --no-daemon | ||
# freeBSD-latest: | ||
# runs-on: macos-12 | ||
# steps: | ||
# - name: Clone | ||
# uses: actions/checkout@v4 | ||
# | ||
# - name: Build | ||
# uses: cross-platform-actions/[email protected] | ||
# with: | ||
# operating_system: freebsd | ||
# version: '13.2' | ||
# hypervisor: 'qemu' | ||
# run: | | ||
# sudo pkg update | ||
# sudo pkg install -y gmake automake autoconf pkgconf llvm15 openblas | ||
# gmake CC=/usr/local/bin/clang15 CXX=/usr/local/bin/clang++15 -j `sysctl -n hw.ncpu` | ||
|
||
release: | ||
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} | ||
|
||
|
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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