Skip to content

Commit cee0a50

Browse files
committed
fix(setup-clang): support ubuntu noble 24.04
1 parent 2207432 commit cee0a50

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

setup-clang/dist/index.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.

setup-clang/dist/index.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.

setup-clang/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ async function main(version, paths, check_latest, update_environment) {
203203

204204
const ubuntuName = setup_program.getCurrentUbuntuName()
205205
trace_commands.log(`Ubuntu version name: ${ubuntuName}`)
206-
if (ubuntuName !== null && allVersionMajors.length !== 0 && ['bionic', 'focal', 'jammy', 'kinetic', 'lunar', 'mantic'].includes(ubuntuName)) {
206+
trace_commands.log(`allVersionMajors.length: ${allVersionMajors.length}`)
207+
if (ubuntuName !== null && allVersionMajors.length !== 0) {
208+
core.info(`Adding APT repositories for Clang ${version} major versions [${allVersionMajors.join(', ')}]`)
209+
207210
// Adding a key requires gnupg
208211
await setup_program.find_program_with_apt(['gnupg'], '*', true)
209212

@@ -248,6 +251,7 @@ async function main(version, paths, check_latest, update_environment) {
248251
}
249252
}
250253

254+
core.info(`Searching for Clang ${version} with APT`)
251255
const __ret = await setup_program.find_program_with_apt(['clang'], version, check_latest)
252256
output_version = __ret.output_version
253257
output_path = __ret.output_path

setup-cpp/dist/index.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.

setup-cpp/dist/index.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.

0 commit comments

Comments
 (0)