mirror of https://github.com/aminya/setup-cpp
fix: fix double doxygen installation on ubuntu 18
This commit is contained in:
parent
d1458aa5c0
commit
5d3ac21c56
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -58,14 +58,15 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri
|
|||
let installationInfo: InstallationInfo
|
||||
if (version === "") {
|
||||
installationInfo = setupAptPack("doxygen", undefined)
|
||||
}
|
||||
try {
|
||||
// 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)
|
||||
setupAptPack("libclang-cpp9")
|
||||
} catch (err) {
|
||||
notice(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)
|
||||
installationInfo = setupAptPack("doxygen", undefined)
|
||||
} else {
|
||||
try {
|
||||
// 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)
|
||||
setupAptPack("libclang-cpp9")
|
||||
} catch (err) {
|
||||
notice(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)
|
||||
installationInfo = setupAptPack("doxygen", undefined)
|
||||
}
|
||||
}
|
||||
await setupGraphviz(getVersion("graphviz", undefined), "", arch)
|
||||
return installationInfo
|
||||
|
|
Loading…
Reference in New Issue