Skip to content

Dev (#21)

Dev (#21) #17

name: android-x86-cpu
on:
push:
branches: [master]
paths:
- '.github/workflows/android-x86-cpu.yml'
- 'CMakeLists.txt'
- 'cmake/**'
- 'src/*'
- 'src/layer/*'
- 'src/layer/x86/**'
pull_request:
branches: [master]
paths:
- '.github/workflows/android-x86-cpu.yml'
- 'CMakeLists.txt'
- 'cmake/**'
- 'src/*'
- 'src/layer/*'
- 'src/layer/x86/**'
concurrency:
group: android-x86-cpu-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
android-x86:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: build
run: |
mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_LATEST_HOME/build/cmake/android.toolchain.cmake -DANDROID_ABI="x86" -DANDROID_PLATFORM=android-14 ..
cmake --build . -j $(nproc)
- name: build-shared
run: |
mkdir build-shared && cd build-shared
cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_LATEST_HOME/build/cmake/android.toolchain.cmake -DANDROID_ABI="x86" -DANDROID_PLATFORM=android-14 -DNCNN_SHARED_LIB=ON ..
cmake --build . -j $(nproc)