Skip to content

Commit af349f8

Browse files
committed
Add github workflow
1 parent f39adc3 commit af349f8

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,27 @@ jobs:
515515
- name: Build Xcode project
516516
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
517517

518+
android-build:
519+
runs-on: ubuntu-latest
520+
521+
steps:
522+
- name: Clone
523+
uses: actions/checkout@v3
524+
525+
- name: Set up JDK
526+
uses: actions/setup-java@v3
527+
with:
528+
java-version: 17
529+
distribution: zulu
530+
531+
- name: Setup Android SDK
532+
uses: android-actions/setup-android@v3
533+
534+
- name: Build
535+
run: |
536+
cd examples/llama.android
537+
./gradlew build --no-daemon
538+
518539
# freeBSD-latest:
519540
# runs-on: macos-12
520541
# steps:

examples/llama.android/app/src/main/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ include(FetchContent)
1616
FetchContent_Declare(
1717
llama
1818
GIT_REPOSITORY https://github.com/ggerganov/llama.cpp
19-
GIT_TAG 1fc2f265ff9377a37fd2c61eae9cd813a3491bea # b1794
19+
GIT_TAG master
2020
)
2121

2222
# Also provides "common"

0 commit comments

Comments
 (0)