Skip to content

Commit

Permalink
Fix android build by adding NDK setup step
Browse files Browse the repository at this point in the history
  • Loading branch information
2shady4u committed Jan 28, 2024
1 parent d9ca532 commit 1099339
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ jobs:
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'

- name: Android dependencies
if: ${{ matrix.platform == 'android' }}
uses: nttld/setup-ndk@v1
with:
ndk-version: r23c
link-to-sdk: true

# Setup scons, print python version and scons version info, so if anything is broken it won't run the build.
- name: Configuring Python packages
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_var.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
"os": "ubuntu-20.04",
"platform": "android",
"artifact-extension": "so",
"flags": "ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME arch=x86_64",
"flags": "arch=x86_64",
"cache-name": "android-x86_64"
},
{
"name": "Android (arm64)",
"os": "ubuntu-20.04",
"platform": "android",
"artifact-extension": "so",
"flags": "ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME arch=arm64",
"flags": "arch=arm64",
"cache-name": "android-arm64"
},
{
Expand Down

0 comments on commit 1099339

Please sign in to comment.