mirror of https://github.com/aminya/setup-cpp
fix: use apt's default for doxygen on older ubuntu
This commit is contained in:
parent
d321271fc9
commit
43b287e9ae
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -33,7 +33,7 @@ export function getVersion(name: string, version: string | undefined, osVersion:
|
||||||
case "meson":
|
case "meson":
|
||||||
return osVersion[0] === 18 ? "0.61.4" : "" /* pip default */
|
return osVersion[0] === 18 ? "0.61.4" : "" /* pip default */
|
||||||
case "doxygen":
|
case "doxygen":
|
||||||
return "1.9.1"
|
return "" /* apt default */
|
||||||
default: {
|
default: {
|
||||||
// nothing
|
// nothing
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,6 +56,9 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri
|
||||||
}
|
}
|
||||||
case "linux": {
|
case "linux": {
|
||||||
let installationInfo: InstallationInfo
|
let installationInfo: InstallationInfo
|
||||||
|
if (version === "") {
|
||||||
|
installationInfo = setupAptPack("doxygen", undefined)
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
// doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself
|
// doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself
|
||||||
installationInfo = await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch)
|
installationInfo = await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch)
|
||||||
|
|
Loading…
Reference in New Issue