Skip to content

Commit 1099339

Browse files
committed
Fix android build by adding NDK setup step
1 parent d9ca532 commit 1099339

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ jobs:
5858
# Optional - x64 or x86 architecture, defaults to x64
5959
architecture: 'x64'
6060

61+
- name: Android dependencies
62+
if: ${{ matrix.platform == 'android' }}
63+
uses: nttld/setup-ndk@v1
64+
with:
65+
ndk-version: r23c
66+
link-to-sdk: true
67+
6168
# Setup scons, print python version and scons version info, so if anything is broken it won't run the build.
6269
- name: Configuring Python packages
6370
run: |

.github/workflows/build_var.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
"os": "ubuntu-20.04",
3333
"platform": "android",
3434
"artifact-extension": "so",
35-
"flags": "ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME arch=x86_64",
35+
"flags": "arch=x86_64",
3636
"cache-name": "android-x86_64"
3737
},
3838
{
3939
"name": "Android (arm64)",
4040
"os": "ubuntu-20.04",
4141
"platform": "android",
4242
"artifact-extension": "so",
43-
"flags": "ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME arch=arm64",
43+
"flags": "arch=arm64",
4444
"cache-name": "android-arm64"
4545
},
4646
{

0 commit comments

Comments
 (0)