mirror of https://github.com/aminya/setup-cpp
fix: set older default only for ubuntu 18
This commit is contained in:
parent
870172d8c1
commit
d321271fc9
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -33,6 +33,7 @@ describe("syncVersion", () => {
|
||||||
expect(syncVersions(opts, llvmTools)).toBe(true)
|
expect(syncVersions(opts, llvmTools)).toBe(true)
|
||||||
expect(opts.llvm).toBe(opts.clangtidy)
|
expect(opts.llvm).toBe(opts.clangtidy)
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
||||||
describe("getVersion", () => {
|
describe("getVersion", () => {
|
||||||
it("gcovr", () => {
|
it("gcovr", () => {
|
||||||
|
@ -52,4 +53,3 @@ describe("syncVersion", () => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
|
||||||
|
|
|
@ -29,9 +29,9 @@ export function getVersion(name: string, version: string | undefined, osVersion:
|
||||||
if (osVersion[0] < 20) {
|
if (osVersion[0] < 20) {
|
||||||
switch (name) {
|
switch (name) {
|
||||||
case "gcovr":
|
case "gcovr":
|
||||||
return "5.0"
|
return osVersion[0] === 18 ? "5.0" : "" /* pip default */
|
||||||
case "meson":
|
case "meson":
|
||||||
return "0.61.4"
|
return osVersion[0] === 18 ? "0.61.4" : "" /* pip default */
|
||||||
case "doxygen":
|
case "doxygen":
|
||||||
return "1.9.1"
|
return "1.9.1"
|
||||||
default: {
|
default: {
|
||||||
|
|
Loading…
Reference in New Issue