Skip to content

Commit

Permalink
github: 修复 Android 构建
Browse files Browse the repository at this point in the history
  • Loading branch information
xychen committed Jul 27, 2022
1 parent 9a9c6d3 commit eba3f9d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,19 @@ jobs:
- name: Setup Ninja
uses: ashutoshvarma/setup-ninja@master

- name: Setup NDK
id: setup-ndk
uses: nttld/setup-ndk@v1
with:
ndk-version: r21e

- name: Build
uses: ./.github/actions/cmake-build
with:
build-args: >-
-DCMAKE_SYSTEM_NAME=Android
-DCMAKE_ANDROID_ARCH_ABI=${{ matrix.abi }}
-DCMAKE_ANDROID_NDK=${{ steps.setup-ndk.outputs.ndk-path }}
- name: Upload artifacts
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit eba3f9d

Please sign in to comment.