[general] Enable cache for CI task

pull/1/head
Dom Eori 2023-01-08 01:53:04 +09:00
parent 041e4f11f6
commit 56cc9056e6
1 changed files with 13 additions and 1 deletions

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