try improving cache by specify cache key

This commit is contained in:
n3t1zen
2026-05-05 23:35:02 +08:00
parent 74c882cb1e
commit 53e653c555
+6 -4
View File
@@ -3,13 +3,15 @@ build-android:
before_script: |
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:
- .go/pkg/mod
- .cache/go-build
- key: "app-compile-cache-$CI_COMMIT_REF_SLUG"
paths:
- works/core/clients/android/app/build
- Android/
- key: "go-cache-$CI_COMMIT_REF_SLUG"
paths:
- .go/pkg/mod
- .cache/go-build
# - .gradle/caches
# - .gradle/wrapper
script: |