Skip to content

Commit a7a5f56

Browse files
committed
fix(ci): use JDK 18 and add settings.gradle.kts to cache inputs
1 parent c89a111 commit a7a5f56

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ jobs:
2424
- name: Set up JDK
2525
uses: actions/[email protected]
2626
with:
27-
distribution: 'zulu'
28-
java-version: '17'
29-
cache: 'gradle'
27+
distribution: temurin
28+
java-version: 18
29+
cache: gradle
3030

3131
- name: Cache Kotlin/Native compiler
3232
uses: actions/[email protected]
3333
with:
3434
path: ~/.konan
35-
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
35+
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'settings.gradle.kts') }}
3636

3737
- name: Run unit tests
3838
uses: gradle/[email protected]

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ jobs:
2929
- name: Set up JDK
3030
uses: actions/[email protected]
3131
with:
32-
distribution: 'zulu'
33-
java-version: '17'
34-
cache: 'gradle'
32+
distribution: temurin
33+
java-version: 18
34+
cache: gradle
3535

3636
- name: Cache Kotlin/Native compiler
3737
uses: actions/[email protected]
3838
with:
3939
path: ~/.konan
40-
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
40+
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'settings.gradle.kts') }}
4141

4242
- name: Publish
4343
uses: gradle/[email protected]
@@ -60,15 +60,15 @@ jobs:
6060
- name: Set up JDK
6161
uses: actions/[email protected]
6262
with:
63-
distribution: 'zulu'
64-
java-version: '17'
65-
cache: 'gradle'
63+
distribution: temurin
64+
java-version: 18
65+
cache: gradle
6666

6767
- name: Cache Kotlin/Native compiler
6868
uses: actions/[email protected]
6969
with:
7070
path: ~/.konan
71-
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
71+
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'settings.gradle.kts') }}
7272

7373
- name: Publish Windows artifacts
7474
uses: gradle/[email protected]

0 commit comments

Comments
 (0)