mirror of
https://github.com/ilammy/msvc-dev-cmd.git
synced 2026-09-07 06:07:19 +08:00
21 lines
544 B
JavaScript
21 lines
544 B
JavaScript
const { setupMSVCDevCmd } = require('./lib')
|
|
const core = require('@actions/core')
|
|
|
|
function main() {
|
|
var arch = core.getInput('arch')
|
|
const sdk = core.getInput('sdk')
|
|
const toolset = core.getInput('toolset')
|
|
const uwp = core.getInput('uwp')
|
|
const spectre = core.getInput('spectre')
|
|
const vsversion = core.getInput('vsversion')
|
|
|
|
setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion)
|
|
}
|
|
|
|
try {
|
|
main()
|
|
}
|
|
catch (e) {
|
|
core.setFailed('Could not setup Developer Command Prompt: ' + e.message)
|
|
}
|