46
46
path : ~/.konan
47
47
key : ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/libs.versions.toml') }}
48
48
- name : JVM & linuxX64 tests
49
- run : ./gradlew --stacktrace clean jvmTest linuxX64Test
49
+ run : ./gradlew --stacktrace --build-cache --parallel --configuration-cache jvmTest linuxX64Test
50
50
51
51
windows :
52
52
name : Windows (mingwX64)
67
67
key : ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/libs.versions.toml') }}
68
68
- name : mingwX64 tests
69
69
shell : bash
70
- run : ./gradlew --stacktrace mingwX64Test
70
+ run : ./gradlew --stacktrace --build-cache --parallel --configuration-cache compileKotlinMingwX64 linkDebugTestMingwX64
71
71
72
72
macos :
73
73
name : macOS (macosArm64 only)
87
87
path : ~/.konan
88
88
key : ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/libs.versions.toml') }}
89
89
- name : macOS tests
90
- run : ./gradlew --stacktrace macosArm64Test
90
+ run : ./gradlew --stacktrace --build-cache --parallel --configuration-cache macosArm64Test
91
91
92
92
static-analysis :
93
93
name : Lint & API checks
@@ -103,18 +103,18 @@ jobs:
103
103
- uses : gradle/actions/setup-gradle@v4
104
104
105
105
- name : detekt
106
- run : ./gradlew --stacktrace detekt
106
+ run : ./gradlew --stacktrace --build-cache --parallel --configuration-cache detekt
107
107
108
108
- name : ktlintCheck (if present)
109
109
run : |
110
110
if ./gradlew -q tasks --all | grep -qE '^ktlintCheck\s'; then
111
- ./gradlew --stacktrace ktlintCheck
111
+ ./gradlew --stacktrace --build-cache --parallel --configuration-cache ktlintCheck
112
112
else
113
113
echo "ktlintCheck not found, skipping"
114
114
fi
115
115
116
116
- name : checkLegacyAbi
117
- run : ./gradlew --stacktrace checkLegacyAbi
117
+ run : ./gradlew --stacktrace --build-cache --parallel --configuration-cache checkLegacyAbi
118
118
119
119
docs :
120
120
name : Dokka (artifact)
@@ -131,7 +131,7 @@ jobs:
131
131
- name : Generate Dokka HTML
132
132
run : |
133
133
if ./gradlew -q tasks --all | grep -qE '^dokkaHtml\s'; then
134
- ./gradlew --stacktrace dokkaHtml
134
+ ./gradlew --stacktrace --build-cache --parallel --configuration-cache dokkaHtml
135
135
else
136
136
echo "dokkaHtml not found, skipping" && exit 0
137
137
fi
0 commit comments