We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac0d0c1 commit bfceb6aCopy full SHA for bfceb6a
.github/workflows/build.yml
@@ -94,13 +94,17 @@ jobs:
94
if: ${{ false }}
95
uses: gradle/actions/setup-gradle@v4
96
97
+ - name: 📖 Get Kotlin version
98
+ id: kotlin-version
99
+ run: |
100
+ KOTLIN_VERSION=$(grep "^kotlin[[:space:]]*=" gradle/libs.versions.toml | cut -d '"' -f2)
101
+ echo "version=$KOTLIN_VERSION" >> "$GITHUB_OUTPUT"
102
+
103
- name: 💽 Cache Kotlin Native
104
uses: actions/cache@v4
105
with:
106
path: ~/.konan
- key: ${{ runner.os }}-konan-${{ hashFiles('**/gradle/libs.versions.toml') }}
- restore-keys: |
- ${{ runner.os }}-konan-
107
+ key: konan-${{ runner.os }}-${{ steps.kotlin-version.outputs.version }}
108
109
- name: 🏗️ Gradle Build & Run
110
id: gradle-build
0 commit comments