mirror of https://github.com/oxen-io/lokinet
make ci try building the flutter apk in the android apk pipeline
This commit is contained in:
parent
f3bc00bcd8
commit
f65ec8e79f
|
@ -76,7 +76,13 @@ local apk_builder(name, image, extra_cmds=[], allow_fail=false, jobs=6) = {
|
|||
[if allow_fail then "failure"]: "ignore",
|
||||
environment: { SSH_KEY: { from_secret: "SSH_KEY" }, ANDROID: "android" },
|
||||
commands: [
|
||||
'VERBOSE=1 JOBS='+jobs+' NDK=/usr/lib/android-ndk ./contrib/android.sh'
|
||||
'VERBOSE=1 JOBS='+jobs+' NDK=/usr/lib/android-ndk ./contrib/android.sh',
|
||||
'git clone https://github.com/oxen-io/lokinet-mobile',
|
||||
'cp -av lokinet-jni-*/* lokinet-mobile/lokinet_lib/android/src/main/jniLibs/',
|
||||
'cd lokinet-mobile',
|
||||
'flutter build apk --debug',
|
||||
'cd ..',
|
||||
'cp lokinet-mobile/build/app/outputs/apk/debug/app-debug.apk lokinet.apk'
|
||||
] + extra_cmds
|
||||
}
|
||||
]
|
||||
|
|
|
@ -42,6 +42,7 @@ if [ -e build-windows ]; then
|
|||
elif [ -e build-android ] ; then
|
||||
# android af ngl
|
||||
cp -av lokinet-jni-* "$base"
|
||||
cp -av *.apk "$base"
|
||||
archive="$base.tar.xz"
|
||||
tar cJvf "$archive" "$base"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue