summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci-build.yml18
-rw-r--r--.github/workflows/ci-cd.yml18
2 files changed, 8 insertions, 28 deletions
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml
index a0d0a674..3d05da07 100644
--- a/.github/workflows/ci-build.yml
+++ b/.github/workflows/ci-build.yml
@@ -19,18 +19,8 @@ jobs:
distribution: 'zulu'
java-version: 16
- - name: Gradle build cache
- uses: actions/cache@v2
- with:
- path: ~/.gradle/caches
- key: ${{ runner.os }}-gradle-build-${{ hashFiles('**/*.gradle*') }}
- restore-keys: ${{ runner.os }}-gradle-build-
-
- - name: Gradle wrapper cache
- uses: actions/cache@v2
- with:
- path: ~/.gradle/wrapper
- key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle-wrapper.properties') }}
-
- name: Build with Gradle
- run: ./gradlew build
+ uses: burrunan/gradle-cache-action@v1
+ with:
+ job-id: jdk16
+ arguments: build
diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml
index f706b99e..d7a86fd2 100644
--- a/.github/workflows/ci-cd.yml
+++ b/.github/workflows/ci-cd.yml
@@ -22,21 +22,11 @@ jobs:
distribution: 'zulu'
java-version: 16
- - name: Gradle build cache
- uses: actions/cache@v2
- with:
- path: ~/.gradle/caches
- key: ${{ runner.os }}-gradle-build-${{ hashFiles('**/*.gradle*') }}
- restore-keys: ${{ runner.os }}-gradle-build-
-
- - name: Gradle wrapper cache
- uses: actions/cache@v2
- with:
- path: ~/.gradle/wrapper
- key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle-wrapper.properties') }}
-
- name: Build with Gradle
- run: ./gradlew build
+ uses: burrunan/gradle-cache-action@v1
+ with:
+ job-id: jdk16
+ arguments: build
# technically optional, brings support for more platform to Docker Buildx
- name: Set up QEMU
bgstack15