From fb26df58508d56845d1594892a6ba652f57a2ea6 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Mon, 6 Sep 2021 19:03:32 +0200 Subject: Migrate to gradle-cache-action --- .github/workflows/ci-build.yml | 18 ++++-------------- .github/workflows/ci-cd.yml | 18 ++++-------------- 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 -- cgit