Skip to content

Commit

Permalink
ci: pin exact Java version
Browse files Browse the repository at this point in the history
This is important for deterministic and reproducible builds.
Without this, the version automatically changes when there is a new
release.

Signed-off-by: Jendrik Johannes <[email protected]>
  • Loading branch information
jjohannes committed Dec 16, 2024
1 parent bbfabe3 commit 82c46fe
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: temurin
java-version: 17
java-version: '17.0.13'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: temurin
java-version: 17
java-version: '17.0.13'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: temurin
java-version: 17
java-version: '17.0.13'

- name: Setup Android SDK
uses: android-actions/setup-android@9fc6c4e9069bf8d3d10b2204b1fb8f6ef7065407 # v3.2.2
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: temurin
java-version: 17
java-version: '17.0.13'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/disabled/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
java-version: '17.0.13'
distribution: 'adopt'
- name: Fetch Hedera SDK
uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/disabled/previewnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
java-version: '17.0.13'
distribution: 'adopt'
- name: Cache Gradle packages
uses: actions/cache@v2
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
java-version: '17.0.13'
distribution: 'adopt'
- name: Cache Gradle packages
uses: actions/cache@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/disabled/testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
java-version: '17.0.13'
distribution: 'adopt'
- name: Cache Gradle packages
uses: actions/cache@v2
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
java-version: '17.0.13'
distribution: 'adopt'
- name: Cache Gradle packages
uses: actions/cache@v2
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
java-version: '17.0.13'
distribution: 'adopt'
- name: Cache Gradle packages
uses: actions/cache@v2
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
name: Upload Github Pages

on:
Expand Down Expand Up @@ -35,7 +36,7 @@ jobs:
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: temurin
java-version: 17
java-version: '17.0.13'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: temurin
java-version: 17
java-version: '17.0.13'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: temurin
java-version: 17
java-version: '17.0.13'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1
Expand Down
2 changes: 1 addition & 1 deletion gradle/toolchain-versions.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
jdk=17.0.12
jdk=17.0.13

0 comments on commit 82c46fe

Please sign in to comment.