Configure explicit java version for config-cache test

The default JDK on some runners can have minor differences, resulting
in configuration-cache misses. Setting the Java version explicitly should
ensure consistency.
This commit is contained in:
daz 2024-01-25 09:21:52 -07:00
parent 1b6cac1f97
commit bd6d0a74d4
No known key found for this signature in database

View File

@ -33,6 +33,11 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Download distribution if required - name: Download distribution if required
uses: ./.github/actions/download-dist uses: ./.github/actions/download-dist
- name: Setup Java to ensure consistency
uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: '21'
- name: Setup Gradle - name: Setup Gradle
uses: ./ uses: ./
with: with:
@ -56,6 +61,11 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Download distribution if required - name: Download distribution if required
uses: ./.github/actions/download-dist uses: ./.github/actions/download-dist
- name: Setup Java to ensure consistency
uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: '21'
- name: Setup Gradle - name: Setup Gradle
uses: ./ uses: ./
with: with:
@ -89,6 +99,11 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Download distribution if required - name: Download distribution if required
uses: ./.github/actions/download-dist uses: ./.github/actions/download-dist
- name: Setup Java to ensure consistency
uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: '21'
- name: Setup Gradle with no extracted cache entries restored - name: Setup Gradle with no extracted cache entries restored
uses: ./ uses: ./
env: env:
@ -113,6 +128,11 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Download distribution if required - name: Download distribution if required
uses: ./.github/actions/download-dist uses: ./.github/actions/download-dist
- name: Setup Java to ensure consistency
uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: '21'
- name: Setup Gradle - name: Setup Gradle
uses: ./ uses: ./
with: with:
@ -136,6 +156,11 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Download distribution if required - name: Download distribution if required
uses: ./.github/actions/download-dist uses: ./.github/actions/download-dist
- name: Setup Java to ensure consistency
uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: '21'
- name: Setup Gradle - name: Setup Gradle
uses: ./ uses: ./
with: with:
@ -160,6 +185,11 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Download distribution if required - name: Download distribution if required
uses: ./.github/actions/download-dist uses: ./.github/actions/download-dist
- name: Setup Java to ensure consistency
uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: '21'
- name: Setup Gradle - name: Setup Gradle
uses: ./ uses: ./
with: with: