From b6f4c3fffa5d2062e0e41b5a557ba7d6f3841ed3 Mon Sep 17 00:00:00 2001 From: Simon Marquis Date: Fri, 20 Dec 2024 16:44:46 +0100 Subject: [PATCH] Fix `build-configuration-compatibility` Gradle experiment (#313) --- .github/actions/setup-gradle/action.yaml | 5 +++++ .github/workflows/gradle-experiments.yml | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/.github/actions/setup-gradle/action.yaml b/.github/actions/setup-gradle/action.yaml index 421ebf2..5a525f1 100644 --- a/.github/actions/setup-gradle/action.yaml +++ b/.github/actions/setup-gradle/action.yaml @@ -5,6 +5,10 @@ inputs: cache-encryption-key: description: Gradle Configuration Cache encryption key required: false + cache-disabled: + description: When 'true', all caching is disabled. No entries will be written to or read from the cache. + required: false + default: false runs: using: composite @@ -13,3 +17,4 @@ runs: with: add-job-summary-as-pr-comment: on-failure cache-encryption-key: ${{ inputs.cache-encryption-key }} + cache-disabled: ${{ inputs.cache-disabled }} diff --git a/.github/workflows/gradle-experiments.yml b/.github/workflows/gradle-experiments.yml index 59f3f6d..a210a6e 100644 --- a/.github/workflows/gradle-experiments.yml +++ b/.github/workflows/gradle-experiments.yml @@ -53,6 +53,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup-java + # Force setup-gradle to prevent issue: https://github.com/gradle/develocity-build-validation-scripts/issues/776 + - uses: ./.github/actions/setup-gradle + with: + cache-disabled: true - name: Run configuration cache experiment uses: gradle/develocity-build-validation-scripts/.github/actions/gradle/experiment-config-cache@actions-stable with: