Run muzzle with read-only github cache (#5444)

This commit is contained in:
Lauri Tulmin 2022-02-24 18:36:02 +02:00 committed by GitHub
parent 640e95df1c
commit 1832b353f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 30 deletions

View File

@ -192,20 +192,11 @@ jobs:
distribution: adopt distribution: adopt
java-version: 11 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 - name: Run muzzle
# using retry because of sporadic gradle download failures uses: gradle/gradle-build-action@v2
uses: nick-invision/retry@v2.6.0
with: with:
# timing out has not been a problem, these jobs typically finish in 2-3 minutes arguments: ${{ matrix.module }}:muzzle
timeout_minutes: 15 cache-read-only: true
max_attempts: 3
command: ./gradlew ${{ matrix.module }}:muzzle
examples: examples:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -183,20 +183,11 @@ jobs:
distribution: adopt distribution: adopt
java-version: 11 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 - name: Run muzzle
# using retry because of sporadic gradle download failures uses: gradle/gradle-build-action@v2
uses: nick-invision/retry@v2.6.0
with: with:
# timing out has not been a problem, these jobs typically finish in 2-3 minutes arguments: ${{ matrix.module }}:muzzle
timeout_minutes: 15 cache-read-only: true
max_attempts: 3
command: ./gradlew ${{ matrix.module }}:muzzle
examples: examples:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -243,13 +243,10 @@ jobs:
java-version: 11 java-version: 11
- name: Run muzzle - name: Run muzzle
# using retry because of sporadic gradle download failures uses: gradle/gradle-build-action@v2
uses: nick-invision/retry@v2.6.0
with: with:
# timing out has not been a problem, these jobs typically finish in 2-3 minutes arguments: ${{ matrix.module }}:muzzle
timeout_minutes: 15 cache-read-only: true
max_attempts: 3
command: ./gradlew ${{ matrix.module }}:muzzle
examples: examples:
runs-on: ubuntu-latest runs-on: ubuntu-latest