Skip to content

Commit 3e760a7

Browse files
committed
chore: bump kbuild to 1.2.5 and enable the gradle build and configuration caches in ci
1 parent 496c941 commit 3e760a7

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
branches: [ main ]
88
workflow_dispatch:
99

10+
# A newer push supersedes any in-flight run for the same ref.
11+
concurrency:
12+
group: build-${{ github.ref }}
13+
cancel-in-progress: true
14+
1015
jobs:
1116
test:
1217
name: Run tests and collect coverage
@@ -23,7 +28,13 @@ jobs:
2328
with:
2429
distribution: temurin
2530
java-version: 21
26-
cache: gradle
31+
32+
# Persists the Gradle home incl. the build and configuration caches across runs.
33+
- name: Set up Gradle
34+
uses: gradle/actions/setup-gradle@v4
35+
with:
36+
cache-read-only: false
37+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
2738

2839
- name: Cache Kotlin/Native toolchain
2940
uses: actions/cache@v4

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
22

33
plugins {
4-
id("com.eignex.kmp") version "1.2.2"
4+
id("com.eignex.kmp") version "1.2.5"
55
kotlin("plugin.serialization") version "2.3.20"
66
}
77

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
org.gradle.configuration-cache=true
2+
org.gradle.caching=true
23
kotlin.suppressGradlePluginWarnings=IncorrectCompileOnlyDependencyWarning
34
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g
45
org.gradle.workers.max=4

0 commit comments

Comments
 (0)