Skip to content

Commit 79523d5

Browse files
committed
feat: default to llvm 15
1 parent cd3be8a commit 79523d5

File tree

10 files changed

+22
-42
lines changed

10 files changed

+22
-42
lines changed

dist/node12/actions_python.13fad391.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node12/actions_python.13fad391.js.map

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

dist/node12/actions_python.d846953d.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/node12/actions_python.d846953d.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/node12/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/node12/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/node16/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/node16/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.

src/llvm/__tests__/llvm.test.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -124,26 +124,6 @@ describe("setup-llvm", () => {
124124
await testBin("clang-format", ["--version"], binDir)
125125
})
126126

127-
it("should setup LLVM 15.0.2", async () => {
128-
await io.rmRF(directory)
129-
await io.rmRF("/Users/runner/hostedtoolcache/llvm")
130-
131-
const { binDir } = await setupLLVM("15.0.2", directory, process.arch)
132-
await testBin("clang++", ["--version"], binDir)
133-
134-
expect(process.env.CC?.includes("clang")).toBeTruthy()
135-
expect(process.env.CXX?.includes("clang++")).toBeTruthy()
136-
137-
// test compilation
138-
const file = path.join(__dirname, "main.cpp")
139-
const main_exe = path.join(__dirname, addExeExt("main"))
140-
execa.sync("clang++", [file, "-o", main_exe], { cwd: __dirname })
141-
if (process.platform !== "win32") {
142-
chmodSync(main_exe, "755")
143-
}
144-
execa.sync(main_exe, { cwd: __dirname, stdio: "inherit" })
145-
})
146-
147127
afterAll(async () => {
148128
await io.rmRF(directory)
149129
}, 100000)

src/versions/default_versions.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { isArch } from "../utils/env/isArch"
44
// the directly downloaded tools require a given version ("" doesn't work).
55

66
export const DefaultVersions: Record<string, string> = {
7-
llvm: "13.0.0", // https://github.com/llvm/llvm-project/releases
8-
clangtidy: "13.0.0",
9-
clangformat: "13.0.0",
7+
llvm: "15.0.4", // https://github.com/llvm/llvm-project/releases
8+
clangtidy: "15.0.4",
9+
clangformat: "15.0.4",
1010
ninja: "1.11.1", // https://github.com/ninja-build/ninja/releases
1111
cmake: "3.25.0", // https://github.com/Kitware/CMake/releases
1212
gcovr: "5.2", // https://pypi.org/project/gcovr/
@@ -30,24 +30,24 @@ export const DefaultLinuxVersion: Record<string, Record<number, string>> = {
3030
14: "11",
3131
},
3232
llvm: {
33-
22: "13.0.0-ubuntu-20.04",
34-
20: "13.0.0-ubuntu-20.04",
35-
18: "13.0.1-ubuntu-18.04",
36-
16: "13.0.0-ubuntu-16.04",
33+
22: "15.0.6-ubuntu-18.0.4",
34+
20: "15.0.6-ubuntu-18.0.4",
35+
18: "15.0.6-ubuntu-18.0.4",
36+
16: "15.0.6-ubuntu-18.0.4",
3737
14: "13.0.0-ubuntu-16.04",
3838
},
3939
clangtidy: {
40-
22: "13.0.0-ubuntu-20.04",
41-
20: "13.0.0-ubuntu-20.04",
42-
18: "13.0.1-ubuntu-18.04",
43-
16: "13.0.0-ubuntu-16.04",
40+
22: "15.0.6-ubuntu-18.0.4",
41+
20: "15.0.6-ubuntu-18.0.4",
42+
18: "15.0.6-ubuntu-18.0.4",
43+
16: "15.0.6-ubuntu-18.0.4",
4444
14: "13.0.0-ubuntu-16.04",
4545
},
4646
clangformat: {
47-
22: "13.0.0-ubuntu-20.04",
48-
20: "13.0.0-ubuntu-20.04",
49-
18: "13.0.1-ubuntu-18.04",
50-
16: "13.0.0-ubuntu-16.04",
47+
22: "15.0.6-ubuntu-18.0.4",
48+
20: "15.0.6-ubuntu-18.0.4",
49+
18: "15.0.6-ubuntu-18.0.4",
50+
16: "15.0.6-ubuntu-18.0.4",
5151
14: "13.0.0-ubuntu-16.04",
5252
},
5353
gcovr: {

0 commit comments

Comments
 (0)