Skip to content

Commit 9830aee

Browse files
committed
fix(setup-clang): support ubuntu noble 24.04
1 parent 32195ef commit 9830aee

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ 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+
if (ubuntuName !== null && allVersionMajors.length !== 0) {
207+
core.info(`Adding APT repositories for Clang ${version} major versions [${allVersionMajors.join(', ')}]`)
208+
207209
// Adding a key requires gnupg
208210
await setup_program.find_program_with_apt(['gnupg'], '*', true)
209211

@@ -248,6 +250,7 @@ async function main(version, paths, check_latest, update_environment) {
248250
}
249251
}
250252

253+
core.info(`Searching for Clang ${version} with APT`)
251254
const __ret = await setup_program.find_program_with_apt(['clang'], version, check_latest)
252255
output_version = __ret.output_version
253256
output_path = __ret.output_path

0 commit comments

Comments
 (0)