mirror of https://github.com/aminya/setup-cpp
fix: disable msvc installation in CI temporarily
This commit is contained in:
parent
531e651d16
commit
2c56d7e32f
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,7 @@
|
|||
import { setupChocoPack } from "../utils/setup/setupChocoPack"
|
||||
import { error, exportVariable } from "@actions/core"
|
||||
import { error, exportVariable, warning } from "@actions/core"
|
||||
import { existsSync } from "fs"
|
||||
import { isCI } from "../utils/env/isci"
|
||||
|
||||
type MSVCVersion = "2015" | "2017" | "2019" | string
|
||||
|
||||
|
@ -33,6 +34,10 @@ export async function setupMSVC(
|
|||
}
|
||||
let toolset: string | undefined
|
||||
let VCTargetsPath: string | undefined
|
||||
if (!isCI()) {
|
||||
// TODO enable this code path once its bugs are fixed
|
||||
// https://github.com/aminya/setup-cpp/issues/1
|
||||
warning("Installing MSVC is experimental and known to fail.")
|
||||
try {
|
||||
if (version === "2015") {
|
||||
toolset = "14.0.25420.1"
|
||||
|
@ -64,6 +69,8 @@ export async function setupMSVC(
|
|||
} catch (e) {
|
||||
error(e as string | Error)
|
||||
}
|
||||
}
|
||||
// run vcvarsall.bat environment variables
|
||||
activateMSVC(VCTargetsPath, arch, toolset, sdk, uwp, spectre)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue