Skip to content

Commit 3ea0053

Browse files
committed
fix: lazy load the external actions
1 parent d028e18 commit 3ea0053

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

dist/main.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/main.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/msvc/msvc.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { setupMSVCDevCmd } from "./msvc-dev-cmd/index"
21
import { setupChocoPack } from "../utils/setup/setupChocoPack"
32
import { error, exportVariable } from "@actions/core"
43
import { existsSync } from "fs"
@@ -68,5 +67,9 @@ export async function setupMSVC(
6867
if (VCTargetsPath !== undefined && existsSync(VCTargetsPath)) {
6968
exportVariable("VCTargetsPath", VCTargetsPath)
7069
}
70+
71+
// lazy load the action so it is not executed
72+
// eslint-disable-next-line @typescript-eslint/no-var-requires
73+
const { setupMSVCDevCmd } = require("./msvc-dev-cmd/index")
7174
setupMSVCDevCmd(getArch(arch), sdk, toolset, uwp, spectre)
7275
}

0 commit comments

Comments
 (0)