mirror of https://github.com/aminya/setup-cpp
fix: use gcc 10 on windows
This commit is contained in:
parent
7c06eab367
commit
24734937d9
|
@ -7,7 +7,7 @@ const DefaultVersions: Record<string, string> = {
|
|||
conan: "1.40.1",
|
||||
meson: "0.59.1",
|
||||
python: "3.x",
|
||||
gcc: "11",
|
||||
gcc: process.platform === "win32" ? "10.2.0" : "11",
|
||||
}
|
||||
|
||||
/** Get the default version if passed true or undefined, otherwise return the version itself */
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
import { testBin } from "../../utils/tests/test-helpers"
|
||||
import { setupGcc } from "../gcc"
|
||||
import { getVersion } from "../../default_versions"
|
||||
|
||||
jest.setTimeout(200000)
|
||||
describe("setup-gcc", () => {
|
||||
it("should setup gcc", async () => {
|
||||
const installInfo = await setupGcc("11", "", process.arch)
|
||||
const version = getVersion("gcc", undefined) ?? "11"
|
||||
const installInfo = await setupGcc(version, "", process.arch)
|
||||
|
||||
let gpp = "g++"
|
||||
if (process.platform !== "win32") {
|
||||
gpp = "g++-11"
|
||||
gpp = `g++-${version}`
|
||||
}
|
||||
await testBin(gpp, ["--version"], installInfo?.binDir)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue