Skip to content

Commit

Permalink
Enable macos tests on GA and reduce parallelism on CI (#3747)
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg authored Aug 19, 2024
1 parent 3fce4ca commit 4fd8c0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
test-matrix:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
Expand Down
7 changes: 2 additions & 5 deletions build-logic/src/main/kotlin/dokkabuild.java.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ java {
tasks.withType<Test>().configureEach {
useJUnitPlatform()

maxParallelForks = if (System.getenv("GITHUB_ACTIONS") != null) {
Runtime.getRuntime().availableProcessors()
} else {
(Runtime.getRuntime().availableProcessors() / 2).coerceAtLeast(1)
}
maxHeapSize = "1G"
maxParallelForks = (Runtime.getRuntime().availableProcessors() / 2).coerceAtLeast(1)

javaLauncher = javaToolchains.launcherFor {
languageVersion = dokkaBuild.testJavaLauncherVersion
Expand Down

0 comments on commit 4fd8c0b

Please sign in to comment.