diff options
author | Joffrey Bion <joffrey.bion@gmail.com> | 2021-09-06 19:03:32 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@gmail.com> | 2021-09-06 19:03:32 +0200 |
commit | fb26df58508d56845d1594892a6ba652f57a2ea6 (patch) | |
tree | 7e4d0b0988b30be5753ba1da9d920a4296c4c023 /.github | |
parent | Add maven central repository to avoid issues with new versions (diff) | |
download | seven-wonders-fb26df58508d56845d1594892a6ba652f57a2ea6.tar.gz seven-wonders-fb26df58508d56845d1594892a6ba652f57a2ea6.tar.bz2 seven-wonders-fb26df58508d56845d1594892a6ba652f57a2ea6.zip |
Migrate to gradle-cache-action
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci-build.yml | 18 | ||||
-rw-r--r-- | .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 |