mirror of
https://github.com/gradle/actions.git
synced 2026-08-19 12:22:51 +00:00
Partial revert of the extraction in #1027. The caching smoke test should answer one question quickly: does a seeded cache let a later build run --offline? Everything else is integration-level. smoke-test-restore-gradle-home now has just two jobs: seed the cache, then verify --offline. The build-cache, no-extracted-cache-entries-restored and pre-existing-gradle-home jobs move to a restored integ-test-restore-gradle-home, wired back into suite-integ-test-caching. The seed-build job is intentionally duplicated across the two workflows. They use distinct cache keys, since both suites run concurrently and would otherwise write to the same entry. pre-existing-gradle-home stays pinned to ubuntu-latest, keeping the reason recorded: pre-creating ~/.gradle is what stops setup-gradle relocating the Gradle User Home to D:\a\.gradle on Windows, so the job looks for a cache entry rooted at a different path than the seed build saved. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
name: suite-integ-test-caching
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
runner-os:
|
|
type: string
|
|
default: '["ubuntu-latest"]'
|
|
skip-dist:
|
|
type: boolean
|
|
default: false
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
cache-cleanup:
|
|
uses: ./.github/workflows/integ-test-cache-cleanup.yml
|
|
with:
|
|
runner-os: '${{ inputs.runner-os }}'
|
|
skip-dist: ${{ inputs.skip-dist }}
|
|
|
|
caching-config:
|
|
uses: ./.github/workflows/integ-test-caching-config.yml
|
|
with:
|
|
runner-os: '${{ inputs.runner-os }}'
|
|
skip-dist: ${{ inputs.skip-dist }}
|
|
|
|
restore-containerized-gradle-home:
|
|
uses: ./.github/workflows/integ-test-restore-containerized-gradle-home.yml
|
|
with:
|
|
skip-dist: ${{ inputs.skip-dist }}
|
|
|
|
restore-custom-gradle-home:
|
|
uses: ./.github/workflows/integ-test-restore-custom-gradle-home.yml
|
|
with:
|
|
skip-dist: ${{ inputs.skip-dist }}
|
|
|
|
restore-gradle-home:
|
|
uses: ./.github/workflows/integ-test-restore-gradle-home.yml
|
|
with:
|
|
skip-dist: ${{ inputs.skip-dist }}
|
|
|
|
restore-java-toolchain:
|
|
uses: ./.github/workflows/integ-test-restore-java-toolchain.yml
|
|
with:
|
|
skip-dist: ${{ inputs.skip-dist }}
|
|
|
|
sample-kotlin-dsl:
|
|
uses: ./.github/workflows/integ-test-sample-kotlin-dsl.yml
|
|
with:
|
|
runner-os: '${{ inputs.runner-os }}'
|
|
skip-dist: ${{ inputs.skip-dist }}
|
|
|
|
sample-gradle-plugin:
|
|
uses: ./.github/workflows/integ-test-sample-gradle-plugin.yml
|
|
with:
|
|
runner-os: '${{ inputs.runner-os }}'
|
|
skip-dist: ${{ inputs.skip-dist }}
|