Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/actions/prepare-for-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ inputs:
default: "temurin"
description: "The default JDK distribution type"

use-cache:
required: false
default: true
description: "Use setup-gradle for dependency caching"

runs:
using: "composite"
steps:
Expand All @@ -26,13 +31,15 @@ runs:
java-package: jdk

- name: Cache gradle-wrapper.jar
if: ${{ fromJSON(inputs.use-cache) }}
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: gradle/wrapper/gradle-wrapper.jar
key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.jar.sha256') }}

# This includes "smart" caching of gradle dependencies.
- name: Set up Gradle
if: ${{ fromJSON(inputs.use-cache) }}
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
with:
# increase expiry time for the temp. develocity token.
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run-checks-gradle-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
- uses: ./.github/actions/prepare-for-build
with:
java-version: ${{ matrix.java-version }}
use-cache: false

- name: Set up RUNTIME_JAVA_HOME variable
if: ${{ matrix.uses-alt-java }}
Expand Down