[K/N][perf] Set mingw path on Windows

Benchmark analyzer depends on curl. And needs a path to mingw binaries.

Merge-request: KT-MR-6797
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com>
This commit is contained in:
Pavel Punegov
2022-08-05 11:05:12 +00:00
committed by Space
parent 7a8c864c5c
commit e08efa8e3b
+5
View File
@@ -313,6 +313,11 @@ subprojects.each {
task teamCityStat(type:Exec) {
def analyzer = findAnalyzerBinary()
if (getAnalyzerTargetName() == 'windows') {
def mingwPath = new File(System.getenv("MINGW64_DIR") ?: "C:/msys64/mingw64")
def pathEnv = getEnvironment()["PATH"]
environment("PATH", "${mingwPath.toString()}/bin" + (pathEnv ? ";$pathEnv" : ""))
}
commandLine analyzer, "-r", "teamcity",
"--artifactory-url", "https://repo.labs.intellij.net/kotlin-native-benchmarks",
"--teamcity-url", "http://buildserver.labs.intellij.net",