2023-12-31 20:12:51 -08:00
|
|
|
const { setupMSVCDevCmd } = require('./lib')
|
2019-10-01 22:13:57 +03:00
|
|
|
const core = require('@actions/core')
|
2021-09-15 19:11:51 -05:00
|
|
|
|
|
|
|
|
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')
|
2022-08-28 00:21:09 -07:00
|
|
|
const vsversion = core.getInput('vsversion')
|
2021-09-15 19:11:51 -05:00
|
|
|
|
2022-08-28 00:21:09 -07:00
|
|
|
setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion)
|
2021-09-15 19:11:51 -05:00
|
|
|
}
|
2019-10-01 22:13:57 +03:00
|
|
|
|
2020-12-13 15:03:03 +09:00
|
|
|
try {
|
|
|
|
|
main()
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
core.setFailed('Could not setup Developer Command Prompt: ' + e.message)
|
|
|
|
|
}
|