Skip to content

Commit 20e9834

Browse files
committed
Speed-up workflows feedback
1 parent 02f47e4 commit 20e9834

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

.github/workflows/run-tests.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ jobs:
1919
with:
2020
cache-read-only: ${{ github.ref_name != 'master' }}
2121

22-
- run: ./gradlew build publishToMavenLocal --continue -Prsocketbuild.skipTests=true
22+
- run: >
23+
./gradlew
24+
build publishToMavenLocal
25+
--continue
26+
-Prsocketbuild.skipTestTasks=true
27+
-Prsocketbuild.skipLinkTasks=true
2328
2429
run-tests:
2530
needs: [ build-project ]
@@ -72,3 +77,15 @@ jobs:
7277
uses: EnricoMi/publish-unit-test-result-action@v2
7378
with:
7479
files: test-reports/**/TEST-*.xml
80+
81+
link-native:
82+
needs: [ run-tests ]
83+
runs-on: ${{ matrix.os }}
84+
strategy:
85+
fail-fast: false
86+
matrix:
87+
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
88+
steps:
89+
- uses: actions/checkout@v4
90+
- uses: ./.github/actions/setup-gradle
91+
- run: ./gradlew linkAll --continue

build-logic/src/main/kotlin/rsocketbuild.multiplatform-base.gradle.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,14 @@ listOf("ios", "watchos", "tvos", "macos").forEach { targetGroup ->
123123
)
124124
}
125125

126-
// on build, link even those binaries, which it's not possible to run
127-
tasks.build {
126+
tasks.register("linkAll") {
128127
dependsOn(tasks.withType<KotlinNativeLink>())
129128
}
130129

131-
if (providers.gradleProperty("rsocketbuild.skipTests").map(String::toBoolean).getOrElse(false)) {
130+
if (providers.gradleProperty("rsocketbuild.skipTestTasks").map(String::toBoolean).getOrElse(false)) {
132131
tasks.withType<AbstractTestTask>().configureEach { onlyIf { false } }
133132
}
134133

135-
if (providers.gradleProperty("rsocketbuild.skipNativeLink").map(String::toBoolean).getOrElse(false)) {
134+
if (providers.gradleProperty("rsocketbuild.skipLinkTasks").map(String::toBoolean).getOrElse(false)) {
136135
tasks.withType<KotlinNativeLink>().configureEach { onlyIf { false } }
137136
}

0 commit comments

Comments
 (0)