mirror of https://github.com/aminya/setup-cpp.git
fix: install gcovr via apt on Ubuntu by default
This commit is contained in:
parent
056bb3b1d9
commit
751b635450
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,11 +1,16 @@
|
|||
import { addEnv } from "envosman"
|
||||
import semverMajor from "semver/functions/major"
|
||||
import semverValid from "semver/functions/valid"
|
||||
import { hasApt, installAptPack } from "setup-apt"
|
||||
import { rcOptions } from "../options.js"
|
||||
import { setupPipPack } from "../utils/setup/setupPipPack.js"
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
export function setupGcovr(version: string | undefined, _setupDir: string, _arch: string) {
|
||||
if (hasApt() && (version === undefined || version === "")) {
|
||||
// use apt on Ubuntu/Debian if version is not specified
|
||||
return installAptPack([{ name: "gcovr", version }])
|
||||
}
|
||||
return setupPipPack("gcovr", version)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue