Skip to content

Commit

Permalink
Speed-up workflows feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed Nov 30, 2024
1 parent 02f47e4 commit 20e9834
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ jobs:
with:
cache-read-only: ${{ github.ref_name != 'master' }}

- run: ./gradlew build publishToMavenLocal --continue -Prsocketbuild.skipTests=true
- run: >
./gradlew
build publishToMavenLocal
--continue
-Prsocketbuild.skipTestTasks=true
-Prsocketbuild.skipLinkTasks=true
run-tests:
needs: [ build-project ]
Expand Down Expand Up @@ -72,3 +77,15 @@ jobs:
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: test-reports/**/TEST-*.xml

link-native:
needs: [ run-tests ]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-gradle
- run: ./gradlew linkAll --continue
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,14 @@ listOf("ios", "watchos", "tvos", "macos").forEach { targetGroup ->
)
}

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

if (providers.gradleProperty("rsocketbuild.skipTests").map(String::toBoolean).getOrElse(false)) {
if (providers.gradleProperty("rsocketbuild.skipTestTasks").map(String::toBoolean).getOrElse(false)) {
tasks.withType<AbstractTestTask>().configureEach { onlyIf { false } }
}

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

0 comments on commit 20e9834

Please sign in to comment.