Skip to content

Commit

Permalink
fix(ci): use JDK 18 and add settings.gradle.kts to cache inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
msfjarvis committed Jun 9, 2022
1 parent c89a111 commit a7a5f56
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ jobs:
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
distribution: temurin
java-version: 18
cache: gradle

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

- name: Run unit tests
uses: gradle/[email protected]
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ jobs:
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
distribution: temurin
java-version: 18
cache: gradle

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

- name: Publish
uses: gradle/[email protected]
Expand All @@ -60,15 +60,15 @@ jobs:
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
distribution: temurin
java-version: 18
cache: gradle

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

- name: Publish Windows artifacts
uses: gradle/[email protected]
Expand Down

0 comments on commit a7a5f56

Please sign in to comment.