Skip to content

Commit 5fc3350

Browse files
committed
Android NDK -> 28.0.13004108
1 parent 5c485dd commit 5fc3350

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

.github/workflows/build-android.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,12 @@ jobs:
4343
matrix:
4444
ARCH: [armv7, arm64, x86_64]
4545
SDK: ["35.0.0"]
46-
NDK: ["27.2.12479018"] #"26.3.11579264",
46+
NDK: ["28.0.13004108"]
4747
API: ["24"]
4848
env:
4949
ARCH: ${{ matrix.ARCH }}
5050
SDK: ${{ matrix.SDK }}
5151
NDK: ${{ matrix.NDK }}
52-
NDK_ROOT: ${{ matrix.NDK }}
5352
ANDROID_API: ${{ matrix.API }}
5453
steps:
5554
- uses: actions/checkout@v4.2.2

apothecary/configure/android_configure.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@ export ANDROID_ABI=$1
1919
export BUILD_SYSTEM=${2:-make}
2020

2121
export TOOLCHAIN_ROOT="${APOTHECARY_LEVEL}/android"
22-
export NDK_ROOT="${ANDROID_NDK_ROOT}"
22+
23+
if [ "${NDK:-}" == "27.2.12479018" ]; then
24+
export NDK_ROOT="${ANDROID_NDK_ROOT:-}"
25+
elif [ "${NDK:-}" == "28.0.13004108" ]; then
26+
export NDK_ROOT="${ANDROID_NDK_LATEST_HOME:-}"
27+
else
28+
echo "Error: NDK path variable not set" >&2
29+
exit 1
30+
fi
2331

2432
export HOST_ARCH=$(uname -m)
2533
case "$(uname)" in

apothecary/toolchains/android.toolchain.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ if(NOT DEFINED ANDROID_ABI)
2424
endif()
2525
endif()
2626

27-
if(NOT DEFINED ANDROID_NDK_ROOT)
28-
if(DEFINED ENV{ANDROID_NDK_ROOT})
29-
set(ANDROID_NDK_ROOT $ENV{ANDROID_NDK_ROOT})
27+
if(NOT DEFINED NDK_ROOT)
28+
if(DEFINED ENV{NDK_ROOT})
29+
set(NDK_ROOT $ENV{NDK_ROOT})
3030
else()
31-
message(FATAL_ERROR "ANDROID_NDK_ROOT must be specified as the path to the Android NDK")
31+
message(FATAL_ERROR "NDK_ROOT must be specified as the path to the Android NDK")
3232
endif()
3333
endif()
3434

0 commit comments

Comments
 (0)