cache and fix android env

This commit is contained in:
n3t1zen
2026-05-04 15:49:37 +08:00
parent 5f80b46908
commit b1eb93eac0
2 changed files with 12 additions and 2 deletions
+5 -1
View File
@@ -4,9 +4,13 @@ build-android:
apt update && apt install -y openjdk-17-jdk-headless unzip curl rsync patch
/usr/lib/jvm/java-17-openjdk-amd64/bin/java --version
mkdir -p ~/.ssh && ssh-keyscan -p 22 -t rsa,ed25519 git.inker.bot >> ~/.ssh/known_hosts
cache:
- paths:
- $HOME/.gradle
- $HOME/go
script: |
export version="$(git describe --tags)-$CI_COMMIT_SHORT_SHA" && echo "building version $version"
bash ./setup-ndk.sh
bash ./setup-ndk.sh && source ./android.env
bin/update && bin/apply-ci && cd works/core
git submodule update --init --recursive
git tag v$version -f