add gitlab ci

This commit is contained in:
n3t1zen
2026-05-04 12:24:21 +08:00
parent 966bbeecef
commit 5d3acb9119
4 changed files with 71 additions and 486 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -e
export ANDROID_HOME="$HOME/Android/Sdk"
export ANDROID_SDK_ROOT="$ANDROID_HOME"
mkdir -p "$ANDROID_HOME/cmdline-tools"
cd "$ANDROID_HOME"
curl -L https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip -o tools.zip
unzip -q tools.zip -d cmdline-tools
mv cmdline-tools/cmdline-tools cmdline-tools/latest
export PATH="$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$PATH"
yes | sdkmanager --licenses >/dev/null
sdkmanager \
"platform-tools" \
"platforms;android-34" \
"build-tools;34.0.0" \
"ndk;28.0.12433566"
export ANDROID_NDK_HOME="$ANDROID_HOME/ndk/28.0.12433566"