diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25c85d4d35..234f383924 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -192,20 +192,11 @@ jobs: distribution: adopt java-version: 11 - - name: Cache Gradle Wrapper - uses: actions/cache@v2 - with: - path: ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-wrapper-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} - - name: Run muzzle - # using retry because of sporadic gradle download failures - uses: nick-invision/retry@v2.6.0 + uses: gradle/gradle-build-action@v2 with: - # timing out has not been a problem, these jobs typically finish in 2-3 minutes - timeout_minutes: 15 - max_attempts: 3 - command: ./gradlew ${{ matrix.module }}:muzzle + arguments: ${{ matrix.module }}:muzzle + cache-read-only: true examples: runs-on: ubuntu-latest diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 7e4bd63bd8..9dc65265c1 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -183,20 +183,11 @@ jobs: distribution: adopt java-version: 11 - - name: Cache Gradle Wrapper - uses: actions/cache@v2 - with: - path: ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-wrapper-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} - - name: Run muzzle - # using retry because of sporadic gradle download failures - uses: nick-invision/retry@v2.6.0 + uses: gradle/gradle-build-action@v2 with: - # timing out has not been a problem, these jobs typically finish in 2-3 minutes - timeout_minutes: 15 - max_attempts: 3 - command: ./gradlew ${{ matrix.module }}:muzzle + arguments: ${{ matrix.module }}:muzzle + cache-read-only: true examples: runs-on: ubuntu-latest diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 06c598a24d..f733a2ddd0 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -243,13 +243,10 @@ jobs: java-version: 11 - name: Run muzzle - # using retry because of sporadic gradle download failures - uses: nick-invision/retry@v2.6.0 + uses: gradle/gradle-build-action@v2 with: - # timing out has not been a problem, these jobs typically finish in 2-3 minutes - timeout_minutes: 15 - max_attempts: 3 - command: ./gradlew ${{ matrix.module }}:muzzle + arguments: ${{ matrix.module }}:muzzle + cache-read-only: true examples: runs-on: ubuntu-latest