Skip to content

Commit

Permalink
修复Android NDK编译
Browse files Browse the repository at this point in the history
  • Loading branch information
cgli authored and TylunasLi committed Jun 10, 2024
1 parent ec8a311 commit 44a1db6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:

- name: Build with arm64-v8a
run: |
wget https://dl.google.com/android/repository/android-ndk-r21d-linux-x86_64.zip
unzip android-ndk-r21d-linux-x86_64.zip
export NDK=$GITHUB_WORKSPACE/android-ndk-r21d
wget -q https://dl.google.com/android/repository/android-ndk-r22b-linux-x86_64.zip
unzip android-ndk-r22b-linux-x86_64.zip
export NDK=$GITHUB_WORKSPACE/android-ndk-r22b
mkdir build-android
cd build-android
#ls ${NDK}/build/cmake/android.toolchain.cmake
Expand All @@ -35,7 +35,7 @@ jobs:
cp main fastllm-main-x86_64
- name: Export and Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Output
path: |
Expand Down
5 changes: 5 additions & 0 deletions example/Android/LLMAssistant/app/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,20 @@ set(PROJECT_SOURCE
../../../../../../../src/device.cpp
../../../../../../../src/model.cpp
../../../../../../../src/executor.cpp
../../../../../../../src/template.cpp
../../../../../../../src/devices/cpu/cpudevice.cpp
../../../../../../../src/devices/cpu/cpudevicebatch.cpp
../../../../../../../src/models/basellm.cpp
../../../../../../../src/models/bert.cpp
../../../../../../../src/models/chatglm.cpp
../../../../../../../src/models/deepseekv2.cpp
../../../../../../../src/models/moss.cpp
../../../../../../../src/models/llama.cpp
../../../../../../../src/models/qwen.cpp
../../../../../../../src/models/glm.cpp
../../../../../../../src/models/internlm2.cpp
../../../../../../../src/models/minicpm.cpp
../../../../../../../src/models/moe.cpp
)

include_directories(
Expand Down

0 comments on commit 44a1db6

Please sign in to comment.