Files
tile/.gitea/workflows/android.yml
tqcq 6f52dde867
All checks were successful
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Successful in 14m49s
linux-arm-gcc / linux-gcc-arm (Debug) (push) Successful in 8m51s
linux-arm-gcc / linux-gcc-arm (Release) (push) Successful in 8m0s
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Successful in 9m19s
linux-arm-gcc / linux-gcc-armhf (Release) (push) Successful in 8m38s
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Successful in 8m53s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 8m35s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 9m23s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Successful in 8m50s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Successful in 8m52s
linux-x64-clang / linux-clang (Debug) (push) Successful in 6m42s
linux-x64-clang / linux-clang (Release) (push) Successful in 6m47s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 9m1s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 8m48s
linux-x86-gcc / linux-gcc (Debug) (push) Successful in 9m51s
linux-x86-gcc / linux-gcc (Release) (push) Successful in 9m38s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Successful in 10m10s
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Successful in 9m2s
feat: add retry for install tools
2025-12-24 16:30:53 +08:00

56 lines
1.3 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: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
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 \
-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
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 3
command: |
sudo apt-get update -y
sudo apt-get install -y ninja-build
- name: build
run: |
mkdir build && cd build
cmake -GNinja .. ${{ env.TILE_CMAKE_OPTIONS}} -DCMAKE_ABI="${{matrix.build_arch}}" -DANDROID_ARM_NEON=ON
cmake --build . -j $(nproc)