Skip to content

Commit 78e5d1e

Browse files
authored
Update Gradle workflow to use JDK 17 and install JBR (#13)
Replaced JetBrains Runtime setup with JDK 17 setup and added JBR installation steps.
1 parent 1db4f0d commit 78e5d1e

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/gradle.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,24 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17-
- name: Set up JetBrains Runtime (JBR)
18-
uses: DeLaGuardo/setup-jbr@v1
17+
- name: Set up JDK 17 (Temurin as fallback)
18+
uses: actions/setup-java@v4
1919
with:
20-
jbr-version: '17'
20+
distribution: 'temurin'
21+
java-version: '17'
22+
23+
- name: Download and Install JetBrains Runtime (JBR)
24+
run: |
25+
JBR_VERSION="17.0.12-b527.4"
26+
JBR_URL="https://cache-redirector.jetbrains.com/intellij-jbr/jbr-${JBR_VERSION}-linux-x64-b527.4.tar.gz"
27+
JBR_PATH="$HOME/jbr"
28+
29+
wget -O jbr.tar.gz ${JBR_URL}
30+
31+
mkdir -p ${JBR_PATH}
32+
tar -xzf jbr.tar.gz -C ${JBR_PATH} --strip-components=1
33+
34+
echo "${JBR_PATH}/bin" >> $GITHUB_PATH
2135
2236
- name: Grant execute permission for gradlew
2337
run: chmod +x gradlew

0 commit comments

Comments
 (0)