File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 20
20
distribution : " temurin"
21
21
java-version : 11
22
22
- name : Install NDK and cmake
23
- run : /usr/local/lib/android/sdk/tools/bin/sdkmanager 'ndk;21.4.7075529' 'cmake;3.18.1'
23
+ run : |
24
+ source ndk.env
25
+ /usr/local/lib/android/sdk/tools/bin/sdkmanager "ndk;${NDK_VERSION}" "cmake;${CMAKE_VERSION}"
24
26
- name : Build QA
25
27
if : ${{ steps.check-secrets.outputs.ok == 'true' }}
26
28
env :
Original file line number Diff line number Diff line change @@ -69,11 +69,18 @@ def versionMinor = 20
69
69
def versionPatch = 0
70
70
def versionBuild = 0 // 0-50=Alpha / 51-98=RC / 90-99=stable
71
71
72
+
73
+ def ndkEnv = new HashMap<String , String > ()
74
+ file(" $project . rootDir /ndk.env" ). readLines(). each() {
75
+ def (key, value) = it. tokenize(' =' )
76
+ ndkEnv. put(key, value)
77
+ }
78
+
72
79
android {
73
80
74
81
compileSdkVersion 31
75
82
// install this NDK version and Cmake to produce smaller APKs. Build will still work if not installed
76
- ndkVersion " 21.4.7075529 "
83
+ ndkVersion " ${ ndkEnv.get("NDK_VERSION") } "
77
84
78
85
defaultConfig {
79
86
minSdkVersion 23
Original file line number Diff line number Diff line change
1
+ NDK_VERSION = 21.4.7075529
2
+ CMAKE_VERSION = 3.18.1
You can’t perform that action at this time.
0 commit comments