From 6014a7104f3687100d965287812e2b574eb01bf8 Mon Sep 17 00:00:00 2001 From: Neuman Vong Date: Mon, 15 Jan 2024 12:29:32 +1100 Subject: [PATCH] Add github workflow --- .github/workflows/build.yml | 21 +++++++++++++++++++ .../app/src/main/cpp/CMakeLists.txt | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0a28a1111..391913499 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -515,6 +515,27 @@ jobs: - 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 + android-build: + runs-on: ubuntu-latest + + steps: + - name: Clone + uses: actions/checkout@v3 + + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: zulu + + - name: Setup Android SDK + uses: android-actions/setup-android@v3 + + - name: Build + run: | + cd examples/llama.android + ./gradlew build --no-daemon + # freeBSD-latest: # runs-on: macos-12 # steps: diff --git a/examples/llama.android/app/src/main/cpp/CMakeLists.txt b/examples/llama.android/app/src/main/cpp/CMakeLists.txt index 0d40dfca7..85139329a 100644 --- a/examples/llama.android/app/src/main/cpp/CMakeLists.txt +++ b/examples/llama.android/app/src/main/cpp/CMakeLists.txt @@ -16,7 +16,7 @@ include(FetchContent) FetchContent_Declare( llama GIT_REPOSITORY https://github.com/ggerganov/llama.cpp - GIT_TAG 1fc2f265ff9377a37fd2c61eae9cd813a3491bea # b1794 + GIT_TAG master ) # Also provides "common"