[general] Enable cache for CI task

This commit is contained in:
Dom Eori
2023-01-30 21:46:31 +09:00
parent 041e4f11f6
commit 56cc9056e6
+13 -1
View File
@@ -6,8 +6,20 @@ before_script:
build:
stage: build
script: gradle assemble
script: gradle --build-cache assemble
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- build
- .gradle
test:
stage: test
script: gradle check
cache:
key: "$CI_COMMIT_REF_NAME"
policy: pull
paths:
- build
- .gradle