mirror of https://github.com/aminya/setup-cpp
fix: add the missing macos/windows versions
This commit is contained in:
parent
79523d501b
commit
0e9ce85be9
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -59,13 +59,15 @@ export const VERSIONS: Set<string> = getVersions([
|
||||||
"15.0.2",
|
"15.0.2",
|
||||||
"15.0.3",
|
"15.0.3",
|
||||||
"15.0.4",
|
"15.0.4",
|
||||||
// missing binaries for Windows
|
"15.0.5",
|
||||||
// "15.0.5",
|
"15.0.6",
|
||||||
// "15.0.6",
|
|
||||||
])
|
])
|
||||||
|
|
||||||
|
/** The LLVM versions that were never released for the Windows platform. */
|
||||||
|
const WIN32_MISSING: Set<string> = new Set(["10.0.1", "15.0.5", "15.0.6"])
|
||||||
|
|
||||||
/** The LLVM versions that were never released for the Darwin platform. */
|
/** The LLVM versions that were never released for the Darwin platform. */
|
||||||
const DARWIN_MISSING: Set<string> = new Set([
|
const DARWIN_MISSING = new Set([
|
||||||
"3.5.1",
|
"3.5.1",
|
||||||
"3.6.1",
|
"3.6.1",
|
||||||
"3.6.2",
|
"3.6.2",
|
||||||
|
@ -79,6 +81,9 @@ const DARWIN_MISSING: Set<string> = new Set([
|
||||||
"11.0.1",
|
"11.0.1",
|
||||||
"11.1.0",
|
"11.1.0",
|
||||||
"12.0.1",
|
"12.0.1",
|
||||||
|
"15.0.4",
|
||||||
|
"15.0.5",
|
||||||
|
"15.0.6",
|
||||||
])
|
])
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -217,9 +222,6 @@ export function getLinuxUrl(versionGiven: string): string {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The LLVM versions that were never released for the Windows platform. */
|
|
||||||
const WIN32_MISSING: Set<string> = new Set(["10.0.1"])
|
|
||||||
|
|
||||||
/** Gets an LLVM download URL for the Windows platform. */
|
/** Gets an LLVM download URL for the Windows platform. */
|
||||||
async function getWin32Url(version: string): Promise<string | null> {
|
async function getWin32Url(version: string): Promise<string | null> {
|
||||||
if (WIN32_MISSING.has(version)) {
|
if (WIN32_MISSING.has(version)) {
|
||||||
|
|
|
@ -4,9 +4,9 @@ import { isArch } from "../utils/env/isArch"
|
||||||
// the directly downloaded tools require a given version ("" doesn't work).
|
// the directly downloaded tools require a given version ("" doesn't work).
|
||||||
|
|
||||||
export const DefaultVersions: Record<string, string> = {
|
export const DefaultVersions: Record<string, string> = {
|
||||||
llvm: "15.0.4", // https://github.com/llvm/llvm-project/releases
|
llvm: process.platform === "darwin" ? "15.0.3" : "15.0.4", // https://github.com/llvm/llvm-project/releases
|
||||||
clangtidy: "15.0.4",
|
clangtidy: process.platform === "darwin" ? "15.0.3" : "15.0.4",
|
||||||
clangformat: "15.0.4",
|
clangformat: process.platform === "darwin" ? "15.0.3" : "15.0.4",
|
||||||
ninja: "1.11.1", // https://github.com/ninja-build/ninja/releases
|
ninja: "1.11.1", // https://github.com/ninja-build/ninja/releases
|
||||||
cmake: "3.25.0", // https://github.com/Kitware/CMake/releases
|
cmake: "3.25.0", // https://github.com/Kitware/CMake/releases
|
||||||
gcovr: "5.2", // https://pypi.org/project/gcovr/
|
gcovr: "5.2", // https://pypi.org/project/gcovr/
|
||||||
|
|
Loading…
Reference in New Issue