fix compile for android
All checks were successful
android / build (arm64-v8a) (push) Successful in 4m40s
android / build (armeabi-v7a) (push) Successful in 5m6s
android / build (x86) (push) Successful in 8m29s
android / build (x86_64) (push) Successful in 4m34s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Successful in 12m23s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Successful in 13m2s
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Successful in 11m58s
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Successful in 13m51s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 11m19s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 11m1s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Successful in 14m44s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Successful in 12m2s
linux-x64-clang / linux-clang (Debug) (push) Successful in 10m46s
linux-x64-clang / linux-clang (Release) (push) Successful in 8m55s
linux-x86-gcc / linux-gcc (Debug) (push) Successful in 12m26s
linux-x86-gcc / linux-gcc (Release) (push) Successful in 12m17s
linux-arm-gcc / linux-gcc-arm (Debug) (push) Successful in 11m5s
linux-arm-gcc / linux-gcc-arm (Release) (push) Successful in 13m30s
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Successful in 11m4s
linux-arm-gcc / linux-gcc-armhf (Release) (push) Successful in 11m42s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 7m48s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 8m31s
All checks were successful
android / build (arm64-v8a) (push) Successful in 4m40s
android / build (armeabi-v7a) (push) Successful in 5m6s
android / build (x86) (push) Successful in 8m29s
android / build (x86_64) (push) Successful in 4m34s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Successful in 12m23s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Successful in 13m2s
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Successful in 11m58s
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Successful in 13m51s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 11m19s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 11m1s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Successful in 14m44s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Successful in 12m2s
linux-x64-clang / linux-clang (Debug) (push) Successful in 10m46s
linux-x64-clang / linux-clang (Release) (push) Successful in 8m55s
linux-x86-gcc / linux-gcc (Debug) (push) Successful in 12m26s
linux-x86-gcc / linux-gcc (Release) (push) Successful in 12m17s
linux-arm-gcc / linux-gcc-arm (Debug) (push) Successful in 11m5s
linux-arm-gcc / linux-gcc-arm (Release) (push) Successful in 13m30s
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Successful in 11m4s
linux-arm-gcc / linux-gcc-armhf (Release) (push) Successful in 11m42s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 7m48s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 8m31s
This commit is contained in:
parent
7d7845acb5
commit
6a719f0cb1
@ -23,6 +23,9 @@ concurrency:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
matrix:
|
||||
build_arch: ["armeabi-v7a", "arm64-v8a", "x86", "x86_64"]
|
||||
env:
|
||||
TILE_CMAKE_OPTIONS: |
|
||||
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_LATEST_HOME/build/cmake/android.toolchain.cmake \
|
||||
@ -31,7 +34,6 @@ jobs:
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DNCNN_VULKAN=ON \
|
||||
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@ -41,32 +43,8 @@ jobs:
|
||||
apt-get update -y
|
||||
apt-get install -y ninja-build
|
||||
|
||||
- name: armeabi-v7a
|
||||
- name: ${{matrix.build_arch}}
|
||||
run: |
|
||||
mkdir build-armeabi-v7a && cd build-armeabi-v7a
|
||||
cmake -GNinja .. ${{ env.TILE_CMAKE_OPTIONS}} -DCMAKE_ABI="armeabi-v7a" -DANDROID_ARM_NEON=ON
|
||||
mkdir build && cd build
|
||||
cmake -GNinja .. ${{ env.TILE_CMAKE_OPTIONS}} -DCMAKE_ABI="${{matrix.build_arch}}" -DANDROID_ARM_NEON=ON
|
||||
cmake --build . -j $(nproc)
|
||||
|
||||
|
||||
- name: arm64-v8a
|
||||
run: |
|
||||
mkdir build-arm64-v8a && cd build-arm64-v8a
|
||||
cmake -GNinja .. ${{ env.TILE_CMAKE_OPTIONS}} -DCMAKE_ABI="arm64-v8a"
|
||||
cmake --build . -j $(nproc)
|
||||
|
||||
- name: x86
|
||||
run: |
|
||||
mkdir build-x86 && cd build-x86
|
||||
cmake -GNinja .. ${{ env.TILE_CMAKE_OPTIONS}} -DCMAKE_ABI="x86"
|
||||
cmake --build . -j $(nproc)
|
||||
|
||||
- name: x86_64
|
||||
run: |
|
||||
mkdir build-x86_64 && cd build-x86_64
|
||||
cmake -GNinja .. ${{ env.TILE_CMAKE_OPTIONS}} -DCMAKE_ABI="x86_64"
|
||||
cmake --build . -j $(nproc)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -32,8 +32,10 @@ option(TILE_BUILD_SHARED "Build shared library" ON)
|
||||
option(TILE_WITH_MIMALLOC "Build with mimalloc" OFF)
|
||||
|
||||
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
|
||||
set(TILE_BUILD_TESTS ON)
|
||||
set(TILE_BUILD_BENCHMARKS ON)
|
||||
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Android")
|
||||
set(TILE_BUILD_TESTS ON)
|
||||
set(TILE_BUILD_BENCHMARKS ON)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user