Skip to content

Commit fa0b7c0

Browse files
committed
Cache K/N toolchain
1 parent 19fd715 commit fa0b7c0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/actions/setup-build/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ runs:
2020
path: 'aws-crt-kotlin'
2121
repository: 'awslabs/aws-crt-kotlin'
2222

23+
# Cache the Kotlin/Native toolchain based on the input Kotlin version from version catalog
24+
# see https://kotlinlang.org/docs/native-improving-compilation-time.html
25+
- name: Cache Kotlin Native toolchain
26+
uses: actions/cache@v4
27+
with:
28+
path: |
29+
~/.konan
30+
key: ${{ runner.os }}-konan-${{ hashFiles('gradle/libs.versions.toml') }}
31+
restore-keys: |
32+
${{ runner.os }}-konan-
33+
2334
- name: Configure JDK
2435
uses: actions/setup-java@v3
2536
with:

0 commit comments

Comments
 (0)