Run muzzle with read-only github cache (#5444)
This commit is contained in:
parent
640e95df1c
commit
1832b353f0
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue