mirror of https://github.com/aminya/setup-cpp
fix: lazy load the external actions
This commit is contained in:
parent
d028e18862
commit
3ea0053fe7
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,3 @@
|
|||
import { setupMSVCDevCmd } from "./msvc-dev-cmd/index"
|
||||
import { setupChocoPack } from "../utils/setup/setupChocoPack"
|
||||
import { error, exportVariable } from "@actions/core"
|
||||
import { existsSync } from "fs"
|
||||
|
@ -68,5 +67,9 @@ export async function setupMSVC(
|
|||
if (VCTargetsPath !== undefined && existsSync(VCTargetsPath)) {
|
||||
exportVariable("VCTargetsPath", VCTargetsPath)
|
||||
}
|
||||
|
||||
// lazy load the action so it is not executed
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const { setupMSVCDevCmd } = require("./msvc-dev-cmd/index")
|
||||
setupMSVCDevCmd(getArch(arch), sdk, toolset, uwp, spectre)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue