3efba12575
Some checks failed
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Waiting to run
linux-arm-gcc / linux-gcc-arm (Debug) (push) Waiting to run
linux-arm-gcc / linux-gcc-arm (Release) (push) Waiting to run
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Waiting to run
linux-arm-gcc / linux-gcc-armhf (Release) (push) Waiting to run
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Waiting to run
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Waiting to run
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Waiting to run
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Waiting to run
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Waiting to run
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Waiting to run
linux-x64-clang / linux-clang (Debug) (push) Waiting to run
linux-x64-clang / linux-clang (Release) (push) Waiting to run
linux-x64-gcc / linux-gcc (Debug) (push) Waiting to run
linux-x64-gcc / linux-gcc (Release) (push) Waiting to run
linux-x86-gcc / linux-gcc (Debug) (push) Waiting to run
linux-x86-gcc / linux-gcc (Release) (push) Waiting to run
android / build (push) Failing after 3m51s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Has been cancelled
73 lines
1.7 KiB
YAML
73 lines
1.7 KiB
YAML
name: android
|
|
on:
|
|
push:
|
|
paths:
|
|
- ".github/workflows/android.yml"
|
|
- "cmake/**"
|
|
- "CMakeLists.txt"
|
|
- "tile/**"
|
|
- "third_party/**"
|
|
|
|
pull_request:
|
|
paths:
|
|
- ".github/workflows/android.yml"
|
|
- "cmake/**"
|
|
- "CMakeLists.txt"
|
|
- "tile/**"
|
|
- "third_party/**"
|
|
|
|
concurrency:
|
|
group: android-${{github.ref}}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-20.04
|
|
env:
|
|
TILE_CMAKE_OPTIONS: |
|
|
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_LATEST_HOME/build/cmake/android.toolchain.cmake \
|
|
-DANDROID_PLATFORM=android-21 \
|
|
-DCMAKE_INSTALL_PREFIX=install \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DNCNN_VULKAN=ON \
|
|
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
- name: install-tools
|
|
run: |
|
|
apt-get update -y
|
|
apt-get install -y ninja-build
|
|
|
|
- name: armeabi-v7a
|
|
run: |
|
|
mkdir build-armeabi-v7a && cd build-armeabi-v7a
|
|
cmake -GNinja .. ${{ env.TILE_CMAKE_OPTIONS}} -DCMAKE_ABI="armeabi-v7a" -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)
|
|
|
|
|
|
|
|
|
|
|