Skip to content

Commit 7c677b6

Browse files
authored
Merge pull request #191 from aminya/llvm-version [skip ci]
2 parents 2ab6e8f + 86eecc3 commit 7c677b6

File tree

8 files changed

+32
-29
lines changed

8 files changed

+32
-29
lines changed

dist/actions/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/actions/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/legacy/setup-cpp.js

Lines changed: 7 additions & 7 deletions
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.js

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

dist/modern/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/__tests__/main.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { syncVersions, getVersion } from "../versions/versions"
22
import { parseArgs } from "../cli-options"
33
import { getCompilerInfo } from "../compilers"
44
import { Inputs } from "../tool"
5+
import { DefaultLinuxVersion } from "../versions/default_versions"
56

67
jest.setTimeout(300000)
78
describe("getCompilerInfo", () => {
@@ -63,9 +64,9 @@ describe("getVersion", () => {
6364
it("llvm", () => {
6465
expect(getVersion("llvm", "13.0.0")).toBe("13.0.0")
6566
if (process.platform === "linux") {
66-
expect(getVersion("llvm", "true", [20, 4])).toBe("15.0.6-ubuntu-18.04")
67-
expect(getVersion("llvm", "true", [18, 4])).toBe("15.0.6-ubuntu-18.04")
68-
expect(getVersion("llvm", "true", [16, 4])).toBe("15.0.6-ubuntu-18.04")
67+
expect(getVersion("llvm", "true", [20, 4])).toBe(DefaultLinuxVersion["llvm"]![20])
68+
expect(getVersion("llvm", "true", [18, 4])).toBe(DefaultLinuxVersion["llvm"]![18])
69+
expect(getVersion("llvm", "true", [16, 4])).toBe(DefaultLinuxVersion["llvm"]![16])
6970
}
7071
})
7172
})

src/versions/default_versions.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ import { isArch } from "../utils/env/isArch"
55

66
function getLLVMDefault() {
77
switch (process.platform) {
8+
case "win32":
9+
return "16.0.6"
810
case "linux":
911
// used for non-ubuntu (Fedora, Arch)
10-
return "15.0.6-ubuntu-18.04"
12+
return "16.0.4-ubuntu-22.04"
1113
case "darwin":
1214
return "15.0.3"
1315
default:
14-
return "15.0.4"
16+
return "16.0.6"
1517
}
1618
}
1719

@@ -52,22 +54,22 @@ export const DefaultLinuxVersion: Record<string, Record<number, string> | undefi
5254
20: "7.0.0-2",
5355
},
5456
llvm: {
55-
22: "15.0.6-ubuntu-18.04",
56-
20: "15.0.6-ubuntu-18.04",
57+
22: "16.0.4-ubuntu-22.04",
58+
20: "16.0.4-ubuntu-22.04",
5759
18: "15.0.6-ubuntu-18.04",
5860
16: "15.0.6-ubuntu-18.04",
5961
14: "13.0.0-ubuntu-16.04",
6062
},
6163
clangtidy: {
62-
22: "15.0.6-ubuntu-18.04",
63-
20: "15.0.6-ubuntu-18.04",
64+
22: "16.0.4-ubuntu-22.04",
65+
20: "16.0.4-ubuntu-22.04",
6466
18: "15.0.6-ubuntu-18.04",
6567
16: "15.0.6-ubuntu-18.04",
6668
14: "13.0.0-ubuntu-16.04",
6769
},
6870
clangformat: {
69-
22: "15.0.6-ubuntu-18.04",
70-
20: "15.0.6-ubuntu-18.04",
71+
22: "16.0.4-ubuntu-22.04",
72+
20: "16.0.4-ubuntu-22.04",
7173
18: "15.0.6-ubuntu-18.04",
7274
16: "15.0.6-ubuntu-18.04",
7375
14: "13.0.0-ubuntu-16.04",

0 commit comments

Comments
 (0)