CI: fix windows tests (#48)

Github Actions modified their windows runners which broke our build. As recommended, we now uses `msys2` on windows and install the packages that we need.
This commit is contained in:
Fabrice Drouin
2022-03-23 15:45:45 +01:00
committed by GitHub
parent d074a03f2d
commit de3fc7fe11
4 changed files with 71 additions and 38 deletions

View File

@@ -7,7 +7,7 @@ if (includeAndroid) {
}
val currentOs = OperatingSystem.current()
val bash = if (currentOs.isWindows) "bash.exe" else "bash"
val bash = "bash"
val buildSecp256k1 by tasks.creating { group = "build" }
@@ -27,7 +27,7 @@ val buildSecp256k1Host by tasks.creating(Exec::class) {
workingDir = projectDir
environment("TARGET", target)
commandLine(bash, "build.sh")
commandLine(bash, "-l", "build.sh")
}
val buildSecp256k1Ios by tasks.creating(Exec::class) {