fix: use gcc 11 instead of 11.2.0

brew fails with 11.2.0

Update gcc.test.ts
This commit is contained in:
Amin Yahyaabadi 2021-09-16 17:24:43 -05:00
parent 6ef4a34ada
commit 7492e96c57
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ const DefaultVersions: Record<string, string> = {
conan: "1.40.1",
meson: "0.59.1",
python: "3.x",
gcc: "11.2.0",
gcc: "11",
}
/** Get the default version if passed true or undefined, otherwise return the version itself */

View File

@ -4,7 +4,7 @@ import { setupGcc } from "../gcc"
jest.setTimeout(200000)
describe("setup-gcc", () => {
it("should setup gcc", async () => {
const installInfo = await setupGcc("11.2.0", "", "")
const installInfo = await setupGcc("11", "", "")
await testBin("g++", ["--version"], installInfo?.binDir)
})