Better github action cache management (#5488)
This commit is contained in:
parent
813c661ac8
commit
786e79fbda
|
@ -63,4 +63,5 @@ jobs:
|
|||
uses: gradle/gradle-build-action@v2
|
||||
with:
|
||||
arguments: ":smoke-tests:test -PsmokeTestSuite=${{ matrix.smoke-test-suite }}${{ inputs.no-build-cache && ' --no-build-cache' || '' }}"
|
||||
cache-read-only: ${{ inputs.cache-read-only }}
|
||||
# only push cache for one matrix option per OS since github action cache space is limited
|
||||
cache-read-only: ${{ inputs.cache-read-only || matrix.smoke-test-suite != 'tomcat' }}
|
||||
|
|
|
@ -57,7 +57,8 @@ jobs:
|
|||
uses: gradle/gradle-build-action@v2
|
||||
with:
|
||||
arguments: test -PtestJavaVersion=${{ matrix.test-java-version }} -PtestJavaVM=${{ matrix.vm }} -Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }} -Porg.gradle.java.installations.auto-download=false ${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
|
||||
cache-read-only: ${{ inputs.cache-read-only }}
|
||||
# only push cache for one matrix option since github action cache space is limited
|
||||
cache-read-only: ${{ inputs.cache-read-only || matrix.test-java-version != 11 || matrix.vm != 'hotspot' }}
|
||||
|
||||
- name: Upload deadlock detector artifacts if any
|
||||
if: always()
|
||||
|
|
Loading…
Reference in New Issue