File tree 3 files changed +14
-7
lines changed
3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,12 @@ jobs:
43
43
matrix :
44
44
ARCH : [armv7, arm64, x86_64]
45
45
SDK : ["35.0.0"]
46
- NDK : ["27.2.12479018"] # "26.3.11579264",
46
+ NDK : ["28.0.13004108"]
47
47
API : ["24"]
48
48
env :
49
49
ARCH : ${{ matrix.ARCH }}
50
50
SDK : ${{ matrix.SDK }}
51
51
NDK : ${{ matrix.NDK }}
52
- NDK_ROOT : ${{ matrix.NDK }}
53
52
ANDROID_API : ${{ matrix.API }}
54
53
steps :
55
54
- uses : actions/checkout@v4.2.2
Original file line number Diff line number Diff line change @@ -19,7 +19,15 @@ export ANDROID_ABI=$1
19
19
export BUILD_SYSTEM=${2:- make}
20
20
21
21
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
23
31
24
32
export HOST_ARCH=$( uname -m)
25
33
case " $( uname) " in
Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ if(NOT DEFINED ANDROID_ABI)
24
24
endif ()
25
25
endif ()
26
26
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 } )
30
30
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" )
32
32
endif ()
33
33
endif ()
34
34
You can’t perform that action at this time.
0 commit comments