Skip to content

Commit

Permalink
Tune some parameters to unlock execution on macOS agents (#239)
Browse files Browse the repository at this point in the history
Currently, tasks are not scheduled to macOS agents as agents either don't have JDK16 installed, or are Apple Sillicon-based.
This change overwrites corresponding tunables to unlock execution on macOS agents.
  • Loading branch information
fzhinkin authored Jul 9, 2024
1 parent f95468e commit 4f0dffb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .teamcity/utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const val bintrayToken = "%env.BINTRAY_API_KEY%"
const val libraryStagingRepoDescription = "kotlinx-benchmark"

val platforms = Platform.values()
const val jdk = "JDK_18_x64"
const val jdk = "JDK_18"

enum class Platform {
Windows, Linux, MacOS;
Expand Down Expand Up @@ -70,6 +70,7 @@ fun Project.buildType(name: String, platform: Platform, configure: BuildType.()
params {
// This parameter is needed for macOS agent to be compatible
if (platform == Platform.MacOS) param("env.JDK_17", "")
if (platform == Platform.MacOS) param("env.JDK_16", "")
}

commonConfigure()
Expand Down Expand Up @@ -119,4 +120,4 @@ fun BuildType.dependsOnSnapshot(build: IdOwner, onFailure: FailureAction = Failu
onDependencyCancel = FailureAction.CANCEL
}
}
}
}

0 comments on commit 4f0dffb

Please sign in to comment.