Skip to content

Commit 05da2d2

Browse files
authored
Use Java 19 on CI. (#1485)
* Use Java 19 on CI. * Use a variable. * Attempt to fix syntax.
1 parent 00571d4 commit 05da2d2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55
- main
66
pull_request:
77
env:
8-
# Increment this to manually invalidate the cache.
9-
CACHE_VERSION: 1
8+
CACHE_VERSION: 1 # Increment this to invalidate the cache.
9+
JAVA_VERSION: 19
1010
jobs:
1111
checks:
1212
name: Checks
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/setup-java@v3
1818
with:
1919
distribution: 'zulu'
20-
java-version: 17
20+
java-version: ${{ env.JAVA_VERSION }}
2121
- run: ./ci_clear_gradle_cache.sh
2222
- uses: actions/cache@v3
2323
with:
@@ -49,7 +49,7 @@ jobs:
4949
- uses: actions/setup-java@v3
5050
with:
5151
distribution: 'zulu'
52-
java-version: 17
52+
java-version: ${{ env.JAVA_VERSION }}
5353
- run: ./ci_clear_gradle_cache.sh
5454
- uses: actions/cache@v3
5555
with:
@@ -75,7 +75,7 @@ jobs:
7575
- uses: actions/setup-java@v3
7676
with:
7777
distribution: 'zulu'
78-
java-version: 17
78+
java-version: ${{ env.JAVA_VERSION }}
7979
- run: ./ci_clear_gradle_cache.sh
8080
- uses: actions/cache@v3
8181
with:
@@ -137,7 +137,7 @@ jobs:
137137
- uses: actions/setup-java@v3
138138
with:
139139
distribution: 'zulu'
140-
java-version: 17
140+
java-version: ${{ env.JAVA_VERSION }}
141141
- run: ./ci_clear_gradle_cache.sh
142142
- uses: actions/cache@v3
143143
with:

0 commit comments

Comments
 (0)