Skip to content

Commit 7ca1626

Browse files
authored
[CI] Update Dokka and caching (#57)
* Enable Gradle configuration and build caches in CI workflows * Update Dokka version and configuration * Update virtual device API level to 35
1 parent 55903a1 commit 7ca1626

File tree

7 files changed

+9
-12
lines changed

7 files changed

+9
-12
lines changed

.github/workflows/build-kdoc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: gradle/actions/setup-gradle@v3
2424

2525
- name: Build KDoc
26-
run: ./gradlew --no-daemon --no-configuration-cache lib:dokkaHtml
26+
run: ./gradlew --build-cache --configuration-cache lib:dokkaGenerate
2727

2828
- name: Publish KDoc
2929
if: success()

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
# uses: github/codeql-action/autobuild@v2
5454

5555
- name: Build
56-
run: ./gradlew --no-daemon lib:assemble
56+
run: ./gradlew --no-daemon --configuration-cache --build-cache lib:assemble
5757

5858
- name: Perform CodeQL Analysis
5959
uses: github/codeql-action/analyze@v3

.github/workflows/test-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: gradle/actions/setup-gradle@v3
1919

2020
- name: Check
21-
run: ./gradlew lib:check
21+
run: ./gradlew --configuration-cache --build-cache lib:check
2222

2323
test_on_emulator:
2424
name: Tests with emulator
@@ -45,4 +45,4 @@ jobs:
4545
key: avd-${{ hashFiles('lib/build.gradle.kts') }} # gradle-managed devices are defined there
4646

4747
- name: Run device tests
48-
run: ./gradlew --no-daemon lib:virtualCheck
48+
run: ./gradlew --configuration-cache --build-cache lib:virtualCheck

build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ plugins {
33
alias(libs.plugins.android.application) apply false
44
alias(libs.plugins.android.library) apply false
55
alias(libs.plugins.compose.compiler) apply false
6-
alias(libs.plugins.dokka) apply false
76
alias(libs.plugins.kotlin.android) apply false
87
}
98

109
group = "at.bitfire"
11-
version = System.getenv("GIT_COMMIT")
10+
version = System.getenv("GIT_COMMIT")

gradle.properties

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ org.gradle.daemon=true
33
org.gradle.jvmargs=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=512m
44
org.gradle.parallel=true
55

6-
# configuration cache [https://developer.android.com/build/optimize-your-build#use-the-configuration-cache-experimental]
7-
org.gradle.unsafe.configuration-cache=true
8-
org.gradle.unsafe.configuration-cache-problems=warn
9-
106
# Android
117
android.useAndroidX=true
8+
# Dokka
9+
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ androidx-test-runner = "1.6.2"
99
androidx-test-rules = "1.6.1"
1010
conscrypt = "2.5.3"
1111
compose-bom = "2025.06.01"
12-
dokka = "1.9.20"
12+
dokka = "2.0.0"
1313
junit = "4.13.2"
1414
kotlin = "2.2.0"
1515
mockk = "1.14.4"

lib/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ android {
5252
localDevices {
5353
create("virtual") {
5454
device = "Pixel 3"
55-
apiLevel = 33
55+
apiLevel = 35
5656
systemImageSource = "aosp-atd"
5757
}
5858
}

0 commit comments

Comments
 (0)