Skip to content

Commit 374c0cd

Browse files
committed
fix: fallback to the latest doxygen on Linux arm
1 parent 2250f08 commit 374c0cd

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

dist/legacy/setup-cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/setup-cpp.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/modern/setup-cpp.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/doxygen/doxygen.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { getVersion } from "../versions/versions.js"
1313
import { pathExists } from "path-exists"
1414
import retry from "retry-as-promised"
1515
import { rcOptions } from "../cli-options.js"
16+
import { arm64 } from "../utils/env/arch.js"
1617
import { hasDnf } from "../utils/env/hasDnf.js"
1718
import { isArch } from "../utils/env/isArch.js"
1819
import { isUbuntu } from "../utils/env/isUbuntu.js"
@@ -106,7 +107,7 @@ async function setupLinuxDoxygen(version: string, setupDir: string, arch: string
106107
} else if (hasDnf()) {
107108
return setupDnfPack([{ name: "doxygen", version }])
108109
} else if (isUbuntu()) {
109-
return await installAptPack([{ name: "doxygen", version, fallBackToLatest: false }])
110+
return await installAptPack([{ name: "doxygen", version, fallBackToLatest: arm64.includes(arch) }])
110111
} else {
111112
throw new Error("Unsupported linux distributions")
112113
}

0 commit comments

Comments
 (0)