Cache gradle wrapper
MODIFY
.github/workflows/build-grpc-smoke-dist.yml
.github/workflows/build-grpc-smoke-dist.yml
@@ -28,6 +28,12 @@ jobs:
with:
job-id: grpc-smoke
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Login to GitHub Package Registry
uses: docker/login-action@v1.9.0
with:

MODIFY
.github/workflows/build-play-smoke-dist.yml
.github/workflows/build-play-smoke-dist.yml
@@ -28,6 +28,12 @@ jobs:
with:
job-id: play-smoke
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Login to GitHub Package Registry
uses: docker/login-action@v1.9.0
with:

MODIFY
.github/workflows/build-smoke-dist-fakebackend.yml
.github/workflows/build-smoke-dist-fakebackend.yml
@@ -27,6 +27,12 @@ jobs:
with:
job-id: fakebackend-smoke
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Login to GitHub Package Registry
uses: docker/login-action@v1.9.0
with:
@@ -65,6 +71,12 @@ jobs:
with:
job-id: fakebackend-smoke
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Login to GitHub Package Registry
uses: azure/docker-login@v1
with:

MODIFY
.github/workflows/build-springboot-smoke-dist.yml
.github/workflows/build-springboot-smoke-dist.yml
@@ -28,6 +28,12 @@ jobs:
with:
job-id: springboot-smoke
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Login to GitHub Package Registry
uses: docker/login-action@v1.9.0
with:

MODIFY
.github/workflows/build-test-matrix.yml
.github/workflows/build-test-matrix.yml
@@ -27,6 +27,12 @@ jobs:
with:
job-id: matrix-smoke
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Login to GitHub Package Registry
uses: docker/login-action@v1.9.0
with:
@@ -65,6 +71,12 @@ jobs:
with:
job-id: matrix-smoke
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Login to GitHub Package Registry
uses: azure/docker-login@v1
with:

MODIFY
.github/workflows/ci.yml
.github/workflows/ci.yml
@@ -25,6 +25,12 @@ jobs:
with:
job-id: jdk11
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Build
env:
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
@@ -60,6 +66,12 @@ jobs:
with:
job-id: jdk${{ matrix.java }}
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Test
env:
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
@@ -84,6 +96,12 @@ jobs:
with:
job-id: latestDepTest
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Test
env:
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
@@ -117,6 +135,12 @@ jobs:
with:
job-id: smokeTests
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Test
env:
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
@@ -141,6 +165,12 @@ jobs:
with:
job-id: jdk11
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Build
run: ./gradlew build --stacktrace
working-directory: examples/distro
@@ -164,6 +194,12 @@ jobs:
with:
job-id: jdk11
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Publish snapshot
env:
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}

MODIFY
.github/workflows/nightly-no-cache.yml
.github/workflows/nightly-no-cache.yml
@@ -20,6 +20,12 @@ jobs:
distribution: adopt
java-version: 11
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Build
run: ./gradlew build --stacktrace -x :smoke-tests:test --no-build-cache
@@ -47,6 +53,12 @@ jobs:
distribution: adopt
java-version: 11
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Test
run: ./gradlew test -PtestJavaVersion=${{ matrix.java }} --stacktrace -x :smoke-tests:test -Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }} -Porg.gradle.java.installations.auto-download=false --no-build-cache
@@ -63,6 +75,12 @@ jobs:
distribution: adopt
java-version: 11
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Test
run: ./gradlew test -x :smoke-tests:test -PtestLatestDeps=true --stacktrace --no-build-cache
@@ -88,6 +106,12 @@ jobs:
distribution: adopt
java-version: 11
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Test
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.suite }} --no-build-cache
@@ -104,6 +128,12 @@ jobs:
distribution: adopt
java-version: 11
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Build
run: ./gradlew build --stacktrace --no-build-cache
working-directory: examples/distro

MODIFY
.github/workflows/nightly.yml
.github/workflows/nightly.yml
@@ -25,6 +25,12 @@ jobs:
with:
job-id: jdk11
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Build
env:
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
@@ -60,6 +66,12 @@ jobs:
with:
job-id: jdk${{ matrix.java }}
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Test
env:
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
@@ -84,6 +96,12 @@ jobs:
with:
job-id: latestDepTest
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Test
env:
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
@@ -117,6 +135,12 @@ jobs:
with:
job-id: smokeTests
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Test
env:
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
@@ -141,6 +165,12 @@ jobs:
with:
job-id: jdk11
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Build
run: ./gradlew build --stacktrace
working-directory: examples/distro

MODIFY
.github/workflows/patch-release-build.yml
.github/workflows/patch-release-build.yml
@@ -77,6 +77,12 @@ jobs:
with:
job-id: jdk${{ matrix.java }}
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Test
run: ./gradlew test -PtestJavaVersion=${{ matrix.java }} --stacktrace -x :smoke-tests:test -Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }} -Porg.gradle.java.installations.auto-download=false
@@ -113,6 +119,12 @@ jobs:
with:
job-id: smokeTests
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Test
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.suite }}
@@ -136,6 +148,12 @@ jobs:
with:
job-id: jdk11
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Build
run: ./gradlew build --stacktrace
working-directory: examples/distro

MODIFY
.github/workflows/pr.yml
.github/workflows/pr.yml
@@ -25,6 +25,12 @@ jobs:
with:
job-id: jdk11
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Start deadlock detector
run: .github/scripts/deadlock-detector.sh
@@ -68,6 +74,12 @@ jobs:
with:
job-id: jdk${{ matrix.java }}
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Start deadlock detector
run: .github/scripts/deadlock-detector.sh
@@ -116,6 +128,12 @@ jobs:
with:
job-id: smokeTests
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Test
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.suite }}
@@ -135,6 +153,12 @@ jobs:
distribution: adopt
java-version: 11
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- id: set-matrix
run: echo "::set-output name=matrix::{\"module\":[\"$(./gradlew -q instrumentation:listInstrumentations | xargs echo | sed 's/ /","/g')\"]}"
@@ -156,6 +180,12 @@ jobs:
distribution: adopt
java-version: 11
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Run muzzle
# using retry because of sporadic gradle download failures
uses: nick-invision/retry@v2.4.1
@@ -183,6 +213,12 @@ jobs:
with:
job-id: jdk11
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Build
run: ./gradlew build --stacktrace
working-directory: examples/distro

MODIFY
.github/workflows/release-build.yml
.github/workflows/release-build.yml
@@ -36,6 +36,12 @@ jobs:
with:
job-id: jdk${{ matrix.java }}
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Test
run: ./gradlew test -PtestJavaVersion=${{ matrix.java }} --stacktrace -x :smoke-tests:test -Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }} -Porg.gradle.java.installations.auto-download=false
@@ -70,6 +76,12 @@ jobs:
with:
job-id: smokeTests
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Test
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.suite }}
@@ -91,6 +103,12 @@ jobs:
with:
job-id: jdk11
+ - name: Cache Gradle Wrapper
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
+
- name: Build
run: ./gradlew build --stacktrace
working-directory: examples/distro

Cache gradle wrapper (#3363)