Skip to content

Commit 496c941

Browse files
committed
chore: cache gradle and kotlin native toolchain in ci
1 parent 8832595 commit 496c941

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ jobs:
2323
with:
2424
distribution: temurin
2525
java-version: 21
26+
cache: gradle
27+
28+
- name: Cache Kotlin/Native toolchain
29+
uses: actions/cache@v4
30+
with:
31+
path: ~/.konan
32+
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle.kts') }}
33+
restore-keys: ${{ runner.os }}-konan-
2634

2735
- name: Grant execute permission for Gradle
2836
run: chmod +x gradlew

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ jobs:
2121
java-version: '21'
2222
cache: gradle
2323

24+
- name: Cache Kotlin/Native toolchain
25+
uses: actions/cache@v4
26+
with:
27+
path: ~/.konan
28+
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle.kts') }}
29+
restore-keys: ${{ runner.os }}-konan-
30+
2431
- name: Extract Version
2532
run: echo "RELEASE_VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
2633

0 commit comments

Comments
 (0)