mirror of
https://github.com/ilammy/msvc-dev-cmd.git
synced 2026-09-07 06:07:19 +08:00
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0b201ec74f | |||
| 1a76314737 | |||
| c32fdcf92e | |||
| 6357fb6ce3 | |||
| 1e07d4d99d | |||
| b8472a4c87 | |||
| 7ab0add6fc | |||
| a742a854f5 | |||
| cec98b9d09 | |||
| bba535b3fe | |||
| 674ff850cb | |||
| f57be51dee |
@@ -15,7 +15,7 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out source code
|
- name: Check out source code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Download Internet
|
- name: Download Internet
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Run eslint
|
- name: Run eslint
|
||||||
@@ -61,7 +61,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out source code
|
- name: Check out source code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm audit --audit-level=moderate --production
|
- run: npm audit --audit-level=moderate --production
|
||||||
- run: npm audit --audit-level=critical
|
- run: npm audit --audit-level=critical
|
||||||
@@ -70,7 +70,7 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out source code
|
- name: Check out source code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Download Internet
|
- name: Download Internet
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Enable Developer Command Prompt
|
- name: Enable Developer Command Prompt
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Developer Command Prompt
|
- name: Setup Developer Command Prompt
|
||||||
uses: ilammy/msvc-dev-cmd@v1
|
uses: ilammy/msvc-dev-cmd@release/v1
|
||||||
- name: Check out source code
|
- name: Check out source code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Compile and run some C code
|
- name: Compile and run some C code
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
@@ -26,6 +26,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out source code
|
- name: Check out source code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- run: npm audit --audit-level=moderate --production
|
- run: npm audit --audit-level=moderate --production
|
||||||
- run: npm audit --audit-level=critical
|
- run: npm audit --audit-level=critical
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ Basic usage for default compilation settings is like this:
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@v1
|
||||||
- name: Build something requiring CL.EXE
|
- name: Build something requiring CL.EXE
|
||||||
run: |
|
run: |
|
||||||
@@ -27,7 +27,7 @@ jobs:
|
|||||||
|
|
||||||
If you want something non-default,
|
If you want something non-default,
|
||||||
like using a specific version of Visual Studio,
|
like using a specific version of Visual Studio,
|
||||||
or cross-compling for a differen target,
|
or cross-compling for a different target,
|
||||||
you will need to configure those settings via inputs:
|
you will need to configure those settings via inputs:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@@ -41,7 +41,7 @@ jobs:
|
|||||||
- amd64_x86
|
- amd64_x86
|
||||||
- amd64_arm64
|
- amd64_arm64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@v1
|
||||||
with:
|
with:
|
||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@ inputs:
|
|||||||
vsversion:
|
vsversion:
|
||||||
description: The Visual Studio version to use. This can be the version number (e.g. 16.0 for 2019) or the year (e.g. "2019").
|
description: The Visual Studio version to use. This can be the version number (e.g. 16.0 for 2019) or the year (e.g. "2019").
|
||||||
runs:
|
runs:
|
||||||
using: node16
|
using: node20
|
||||||
main: index.js
|
main: index.js
|
||||||
branding:
|
branding:
|
||||||
icon: terminal
|
icon: terminal
|
||||||
|
|||||||
@@ -1,228 +1,5 @@
|
|||||||
|
const { setupMSVCDevCmd } = require('./lib')
|
||||||
const core = require('@actions/core')
|
const core = require('@actions/core')
|
||||||
const child_process = require('child_process')
|
|
||||||
const fs = require('fs')
|
|
||||||
const path = require('path')
|
|
||||||
const process = require('process')
|
|
||||||
|
|
||||||
const PROGRAM_FILES_X86 = process.env['ProgramFiles(x86)']
|
|
||||||
const PROGRAM_FILES = [process.env['ProgramFiles(x86)'], process.env['ProgramFiles']]
|
|
||||||
|
|
||||||
|
|
||||||
const EDITIONS = ['Enterprise', 'Professional', 'Community']
|
|
||||||
const YEARS = ['2022', '2019', '2017']
|
|
||||||
|
|
||||||
const VsYearVersion = {
|
|
||||||
'2022': '17.0',
|
|
||||||
'2019': '16.0',
|
|
||||||
'2017': '15.0',
|
|
||||||
'2015': '14.0',
|
|
||||||
'2013': '12.0',
|
|
||||||
}
|
|
||||||
|
|
||||||
function vsversion_to_versionnumber(vsversion) {
|
|
||||||
if (Object.values(VsYearVersion).includes(vsversion)) {
|
|
||||||
return vsversion
|
|
||||||
} else {
|
|
||||||
if (vsversion in VsYearVersion) {
|
|
||||||
return VsYearVersion[vsversion]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return vsversion
|
|
||||||
}
|
|
||||||
exports.vsversion_to_versionnumber = vsversion_to_versionnumber
|
|
||||||
|
|
||||||
function vsversion_to_year(vsversion) {
|
|
||||||
if (Object.keys(VsYearVersion).includes(vsversion)) {
|
|
||||||
return vsversion
|
|
||||||
} else {
|
|
||||||
for (const [year, ver] of Object.entries(VsYearVersion)) {
|
|
||||||
if (ver === vsversion) {
|
|
||||||
return year
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return vsversion
|
|
||||||
}
|
|
||||||
exports.vsversion_to_year = vsversion_to_year
|
|
||||||
|
|
||||||
const VSWHERE_PATH = `${PROGRAM_FILES_X86}\\Microsoft Visual Studio\\Installer`
|
|
||||||
|
|
||||||
function findWithVswhere(pattern, version_pattern) {
|
|
||||||
try {
|
|
||||||
let installationPath = child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim()
|
|
||||||
return installationPath + '\\' + pattern
|
|
||||||
} catch (e) {
|
|
||||||
core.warning(`vswhere failed: ${e}`)
|
|
||||||
}
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
exports.findWithVswhere = findWithVswhere
|
|
||||||
|
|
||||||
function findVcvarsall(vsversion) {
|
|
||||||
const vsversion_number = vsversion_to_versionnumber(vsversion)
|
|
||||||
let version_pattern
|
|
||||||
if (vsversion_number) {
|
|
||||||
const upper_bound = vsversion_number.split('.')[0] + '.9'
|
|
||||||
version_pattern = `-version "${vsversion_number},${upper_bound}"`
|
|
||||||
} else {
|
|
||||||
version_pattern = "-latest"
|
|
||||||
}
|
|
||||||
|
|
||||||
// If vswhere is available, ask it about the location of the latest Visual Studio.
|
|
||||||
let path = findWithVswhere('VC\\Auxiliary\\Build\\vcvarsall.bat', version_pattern)
|
|
||||||
if (path && fs.existsSync(path)) {
|
|
||||||
core.info(`Found with vswhere: ${path}`)
|
|
||||||
return path
|
|
||||||
}
|
|
||||||
core.info("Not found with vswhere")
|
|
||||||
|
|
||||||
// If that does not work, try the standard installation locations,
|
|
||||||
// starting with the latest and moving to the oldest.
|
|
||||||
const years = vsversion ? [vsversion_to_year(vsversion)] : YEARS
|
|
||||||
for (const prog_files of PROGRAM_FILES) {
|
|
||||||
for (const ver of years) {
|
|
||||||
for (const ed of EDITIONS) {
|
|
||||||
path = `${prog_files}\\Microsoft Visual Studio\\${ver}\\${ed}\\VC\\Auxiliary\\Build\\vcvarsall.bat`
|
|
||||||
core.info(`Trying standard location: ${path}`)
|
|
||||||
if (fs.existsSync(path)) {
|
|
||||||
core.info(`Found standard location: ${path}`)
|
|
||||||
return path
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
core.info("Not found in standard locations")
|
|
||||||
|
|
||||||
// Special case for Visual Studio 2015 (and maybe earlier), try it out too.
|
|
||||||
path = `${PROGRAM_FILES_X86}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`
|
|
||||||
if (fs.existsSync(path)) {
|
|
||||||
core.info(`Found VS 2015: ${path}`)
|
|
||||||
return path
|
|
||||||
}
|
|
||||||
core.info(`Not found in VS 2015 location: ${path}`)
|
|
||||||
|
|
||||||
throw new Error('Microsoft Visual Studio not found')
|
|
||||||
}
|
|
||||||
exports.findVcvarsall = findVcvarsall
|
|
||||||
|
|
||||||
function isPathVariable(name) {
|
|
||||||
const pathLikeVariables = ['PATH', 'INCLUDE', 'LIB', 'LIBPATH']
|
|
||||||
return pathLikeVariables.indexOf(name.toUpperCase()) != -1
|
|
||||||
}
|
|
||||||
|
|
||||||
function filterPathValue(path) {
|
|
||||||
let paths = path.split(';')
|
|
||||||
// Remove duplicates by keeping the first occurance and preserving order.
|
|
||||||
// This keeps path shadowing working as intended.
|
|
||||||
function unique(value, index, self) {
|
|
||||||
return self.indexOf(value) === index
|
|
||||||
}
|
|
||||||
return paths.filter(unique).join(';')
|
|
||||||
}
|
|
||||||
|
|
||||||
/** See https://github.com/ilammy/msvc-dev-cmd#inputs */
|
|
||||||
function setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {
|
|
||||||
if (process.platform != 'win32') {
|
|
||||||
core.info('This is not a Windows virtual environment, bye!')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add standard location of "vswhere" to PATH, in case it's not there.
|
|
||||||
process.env.PATH += path.delimiter + VSWHERE_PATH
|
|
||||||
|
|
||||||
// There are all sorts of way the architectures are called. In addition to
|
|
||||||
// values supported by Microsoft Visual C++, recognize some common aliases.
|
|
||||||
let arch_aliases = {
|
|
||||||
"win32": "x86",
|
|
||||||
"win64": "x64",
|
|
||||||
"x86_64": "x64",
|
|
||||||
"x86-64": "x64",
|
|
||||||
}
|
|
||||||
// Ignore case when matching as that's what humans expect.
|
|
||||||
if (arch.toLowerCase() in arch_aliases) {
|
|
||||||
arch = arch_aliases[arch.toLowerCase()]
|
|
||||||
}
|
|
||||||
|
|
||||||
// Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:
|
|
||||||
// Call the configuration batch file and then output *all* the environment variables.
|
|
||||||
|
|
||||||
var args = [arch]
|
|
||||||
if (uwp == 'true') {
|
|
||||||
args.push('uwp')
|
|
||||||
}
|
|
||||||
if (sdk) {
|
|
||||||
args.push(sdk)
|
|
||||||
}
|
|
||||||
if (toolset) {
|
|
||||||
args.push(`-vcvars_ver=${toolset}`)
|
|
||||||
}
|
|
||||||
if (spectre == 'true') {
|
|
||||||
args.push('-vcvars_spectre_libs=spectre')
|
|
||||||
}
|
|
||||||
|
|
||||||
const vcvars = `"${findVcvarsall(vsversion)}" ${args.join(' ')}`
|
|
||||||
core.debug(`vcvars command-line: ${vcvars}`)
|
|
||||||
|
|
||||||
const cmd_output_string = child_process.execSync(`set && cls && ${vcvars} && cls && set`, {shell: "cmd"}).toString()
|
|
||||||
const cmd_output_parts = cmd_output_string.split('\f')
|
|
||||||
|
|
||||||
const old_environment = cmd_output_parts[0].split('\r\n')
|
|
||||||
const vcvars_output = cmd_output_parts[1].split('\r\n')
|
|
||||||
const new_environment = cmd_output_parts[2].split('\r\n')
|
|
||||||
|
|
||||||
// If vsvars.bat is given an incorrect command line, it will print out
|
|
||||||
// an error and *still* exit successfully. Parse out errors from output
|
|
||||||
// which don't look like environment variables, and fail if appropriate.
|
|
||||||
const error_messages = vcvars_output.filter((line) => {
|
|
||||||
if (line.match(/^\[ERROR.*\]/)) {
|
|
||||||
// Don't print this particular line which will be confusing in output.
|
|
||||||
if (!line.match(/Error in script usage. The correct usage is:$/)) {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
})
|
|
||||||
if (error_messages.length > 0) {
|
|
||||||
throw new Error('invalid parameters' + '\r\n' + error_messages.join('\r\n'))
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert old environment lines into a dictionary for easier lookup.
|
|
||||||
let old_env_vars = {}
|
|
||||||
for (let string of old_environment) {
|
|
||||||
const [name, value] = string.split('=')
|
|
||||||
old_env_vars[name] = value
|
|
||||||
}
|
|
||||||
|
|
||||||
// Now look at the new environment and export everything that changed.
|
|
||||||
// These are the variables set by vsvars.bat. Also export everything
|
|
||||||
// that was not there during the first sweep: those are new variables.
|
|
||||||
core.startGroup('Environment variables')
|
|
||||||
for (let string of new_environment) {
|
|
||||||
// vsvars.bat likes to print some fluff at the beginning.
|
|
||||||
// Skip lines that don't look like environment variables.
|
|
||||||
if (!string.includes('=')) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
let [name, new_value] = string.split('=')
|
|
||||||
let old_value = old_env_vars[name]
|
|
||||||
// For new variables "old_value === undefined".
|
|
||||||
if (new_value !== old_value) {
|
|
||||||
core.info(`Setting ${name}`)
|
|
||||||
// Special case for a bunch of PATH-like variables: vcvarsall.bat
|
|
||||||
// just prepends its stuff without checking if its already there.
|
|
||||||
// This makes repeated invocations of this action fail after some
|
|
||||||
// point, when the environment variable overflows. Avoid that.
|
|
||||||
if (isPathVariable(name)) {
|
|
||||||
new_value = filterPathValue(new_value)
|
|
||||||
}
|
|
||||||
core.exportVariable(name, new_value)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
core.endGroup()
|
|
||||||
|
|
||||||
core.info(`Configured Developer Command Prompt`)
|
|
||||||
}
|
|
||||||
exports.setupMSVCDevCmd = setupMSVCDevCmd
|
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
var arch = core.getInput('arch')
|
var arch = core.getInput('arch')
|
||||||
|
|||||||
@@ -0,0 +1,225 @@
|
|||||||
|
const core = require('@actions/core')
|
||||||
|
const child_process = require('child_process')
|
||||||
|
const fs = require('fs')
|
||||||
|
const path = require('path')
|
||||||
|
const process = require('process')
|
||||||
|
|
||||||
|
const PROGRAM_FILES_X86 = process.env['ProgramFiles(x86)']
|
||||||
|
const PROGRAM_FILES = [process.env['ProgramFiles(x86)'], process.env['ProgramFiles']]
|
||||||
|
|
||||||
|
|
||||||
|
const EDITIONS = ['Enterprise', 'Professional', 'Community', 'BuildTools']
|
||||||
|
const YEARS = ['2022', '2019', '2017']
|
||||||
|
|
||||||
|
const VsYearVersion = {
|
||||||
|
'2022': '17.0',
|
||||||
|
'2019': '16.0',
|
||||||
|
'2017': '15.0',
|
||||||
|
'2015': '14.0',
|
||||||
|
'2013': '12.0',
|
||||||
|
}
|
||||||
|
|
||||||
|
function vsversion_to_versionnumber(vsversion) {
|
||||||
|
if (Object.values(VsYearVersion).includes(vsversion)) {
|
||||||
|
return vsversion
|
||||||
|
} else {
|
||||||
|
if (vsversion in VsYearVersion) {
|
||||||
|
return VsYearVersion[vsversion]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return vsversion
|
||||||
|
}
|
||||||
|
exports.vsversion_to_versionnumber = vsversion_to_versionnumber
|
||||||
|
|
||||||
|
function vsversion_to_year(vsversion) {
|
||||||
|
if (Object.keys(VsYearVersion).includes(vsversion)) {
|
||||||
|
return vsversion
|
||||||
|
} else {
|
||||||
|
for (const [year, ver] of Object.entries(VsYearVersion)) {
|
||||||
|
if (ver === vsversion) {
|
||||||
|
return year
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return vsversion
|
||||||
|
}
|
||||||
|
exports.vsversion_to_year = vsversion_to_year
|
||||||
|
|
||||||
|
const VSWHERE_PATH = `${PROGRAM_FILES_X86}\\Microsoft Visual Studio\\Installer`
|
||||||
|
|
||||||
|
function findWithVswhere(pattern, version_pattern) {
|
||||||
|
try {
|
||||||
|
let installationPath = child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim()
|
||||||
|
return installationPath + '\\' + pattern
|
||||||
|
} catch (e) {
|
||||||
|
core.warning(`vswhere failed: ${e}`)
|
||||||
|
}
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
exports.findWithVswhere = findWithVswhere
|
||||||
|
|
||||||
|
function findVcvarsall(vsversion) {
|
||||||
|
const vsversion_number = vsversion_to_versionnumber(vsversion)
|
||||||
|
let version_pattern
|
||||||
|
if (vsversion_number) {
|
||||||
|
const upper_bound = vsversion_number.split('.')[0] + '.9'
|
||||||
|
version_pattern = `-version "${vsversion_number},${upper_bound}"`
|
||||||
|
} else {
|
||||||
|
version_pattern = "-latest"
|
||||||
|
}
|
||||||
|
|
||||||
|
// If vswhere is available, ask it about the location of the latest Visual Studio.
|
||||||
|
let path = findWithVswhere('VC\\Auxiliary\\Build\\vcvarsall.bat', version_pattern)
|
||||||
|
if (path && fs.existsSync(path)) {
|
||||||
|
core.info(`Found with vswhere: ${path}`)
|
||||||
|
return path
|
||||||
|
}
|
||||||
|
core.info("Not found with vswhere")
|
||||||
|
|
||||||
|
// If that does not work, try the standard installation locations,
|
||||||
|
// starting with the latest and moving to the oldest.
|
||||||
|
const years = vsversion ? [vsversion_to_year(vsversion)] : YEARS
|
||||||
|
for (const prog_files of PROGRAM_FILES) {
|
||||||
|
for (const ver of years) {
|
||||||
|
for (const ed of EDITIONS) {
|
||||||
|
path = `${prog_files}\\Microsoft Visual Studio\\${ver}\\${ed}\\VC\\Auxiliary\\Build\\vcvarsall.bat`
|
||||||
|
core.info(`Trying standard location: ${path}`)
|
||||||
|
if (fs.existsSync(path)) {
|
||||||
|
core.info(`Found standard location: ${path}`)
|
||||||
|
return path
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
core.info("Not found in standard locations")
|
||||||
|
|
||||||
|
// Special case for Visual Studio 2015 (and maybe earlier), try it out too.
|
||||||
|
path = `${PROGRAM_FILES_X86}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`
|
||||||
|
if (fs.existsSync(path)) {
|
||||||
|
core.info(`Found VS 2015: ${path}`)
|
||||||
|
return path
|
||||||
|
}
|
||||||
|
core.info(`Not found in VS 2015 location: ${path}`)
|
||||||
|
|
||||||
|
throw new Error('Microsoft Visual Studio not found')
|
||||||
|
}
|
||||||
|
exports.findVcvarsall = findVcvarsall
|
||||||
|
|
||||||
|
function isPathVariable(name) {
|
||||||
|
const pathLikeVariables = ['PATH', 'INCLUDE', 'LIB', 'LIBPATH']
|
||||||
|
return pathLikeVariables.indexOf(name.toUpperCase()) != -1
|
||||||
|
}
|
||||||
|
|
||||||
|
function filterPathValue(path) {
|
||||||
|
let paths = path.split(';')
|
||||||
|
// Remove duplicates by keeping the first occurance and preserving order.
|
||||||
|
// This keeps path shadowing working as intended.
|
||||||
|
function unique(value, index, self) {
|
||||||
|
return self.indexOf(value) === index
|
||||||
|
}
|
||||||
|
return paths.filter(unique).join(';')
|
||||||
|
}
|
||||||
|
|
||||||
|
/** See https://github.com/ilammy/msvc-dev-cmd#inputs */
|
||||||
|
function setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {
|
||||||
|
if (process.platform != 'win32') {
|
||||||
|
core.info('This is not a Windows virtual environment, bye!')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add standard location of "vswhere" to PATH, in case it's not there.
|
||||||
|
process.env.PATH += path.delimiter + VSWHERE_PATH
|
||||||
|
|
||||||
|
// There are all sorts of way the architectures are called. In addition to
|
||||||
|
// values supported by Microsoft Visual C++, recognize some common aliases.
|
||||||
|
let arch_aliases = {
|
||||||
|
"win32": "x86",
|
||||||
|
"win64": "x64",
|
||||||
|
"x86_64": "x64",
|
||||||
|
"x86-64": "x64",
|
||||||
|
}
|
||||||
|
// Ignore case when matching as that's what humans expect.
|
||||||
|
if (arch.toLowerCase() in arch_aliases) {
|
||||||
|
arch = arch_aliases[arch.toLowerCase()]
|
||||||
|
}
|
||||||
|
|
||||||
|
// Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:
|
||||||
|
// Call the configuration batch file and then output *all* the environment variables.
|
||||||
|
|
||||||
|
var args = [arch]
|
||||||
|
if (uwp == 'true') {
|
||||||
|
args.push('uwp')
|
||||||
|
}
|
||||||
|
if (sdk) {
|
||||||
|
args.push(sdk)
|
||||||
|
}
|
||||||
|
if (toolset) {
|
||||||
|
args.push(`-vcvars_ver=${toolset}`)
|
||||||
|
}
|
||||||
|
if (spectre == 'true') {
|
||||||
|
args.push('-vcvars_spectre_libs=spectre')
|
||||||
|
}
|
||||||
|
|
||||||
|
const vcvars = `"${findVcvarsall(vsversion)}" ${args.join(' ')}`
|
||||||
|
core.debug(`vcvars command-line: ${vcvars}`)
|
||||||
|
|
||||||
|
const cmd_output_string = child_process.execSync(`set && cls && ${vcvars} && cls && set`, {shell: "cmd"}).toString()
|
||||||
|
const cmd_output_parts = cmd_output_string.split('\f')
|
||||||
|
|
||||||
|
const old_environment = cmd_output_parts[0].split('\r\n')
|
||||||
|
const vcvars_output = cmd_output_parts[1].split('\r\n')
|
||||||
|
const new_environment = cmd_output_parts[2].split('\r\n')
|
||||||
|
|
||||||
|
// If vsvars.bat is given an incorrect command line, it will print out
|
||||||
|
// an error and *still* exit successfully. Parse out errors from output
|
||||||
|
// which don't look like environment variables, and fail if appropriate.
|
||||||
|
const error_messages = vcvars_output.filter((line) => {
|
||||||
|
if (line.match(/^\[ERROR.*\]/)) {
|
||||||
|
// Don't print this particular line which will be confusing in output.
|
||||||
|
if (!line.match(/Error in script usage. The correct usage is:$/)) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
})
|
||||||
|
if (error_messages.length > 0) {
|
||||||
|
throw new Error('invalid parameters' + '\r\n' + error_messages.join('\r\n'))
|
||||||
|
}
|
||||||
|
|
||||||
|
// Convert old environment lines into a dictionary for easier lookup.
|
||||||
|
let old_env_vars = {}
|
||||||
|
for (let string of old_environment) {
|
||||||
|
const [name, value] = string.split('=')
|
||||||
|
old_env_vars[name] = value
|
||||||
|
}
|
||||||
|
|
||||||
|
// Now look at the new environment and export everything that changed.
|
||||||
|
// These are the variables set by vsvars.bat. Also export everything
|
||||||
|
// that was not there during the first sweep: those are new variables.
|
||||||
|
core.startGroup('Environment variables')
|
||||||
|
for (let string of new_environment) {
|
||||||
|
// vsvars.bat likes to print some fluff at the beginning.
|
||||||
|
// Skip lines that don't look like environment variables.
|
||||||
|
if (!string.includes('=')) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
let [name, new_value] = string.split('=')
|
||||||
|
let old_value = old_env_vars[name]
|
||||||
|
// For new variables "old_value === undefined".
|
||||||
|
if (new_value !== old_value) {
|
||||||
|
core.info(`Setting ${name}`)
|
||||||
|
// Special case for a bunch of PATH-like variables: vcvarsall.bat
|
||||||
|
// just prepends its stuff without checking if its already there.
|
||||||
|
// This makes repeated invocations of this action fail after some
|
||||||
|
// point, when the environment variable overflows. Avoid that.
|
||||||
|
if (isPathVariable(name)) {
|
||||||
|
new_value = filterPathValue(new_value)
|
||||||
|
}
|
||||||
|
core.exportVariable(name, new_value)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
core.endGroup()
|
||||||
|
|
||||||
|
core.info(`Configured Developer Command Prompt`)
|
||||||
|
}
|
||||||
|
exports.setupMSVCDevCmd = setupMSVCDevCmd
|
||||||
+5
-5
@@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "msvc-dev-cmd",
|
"name": "msvc-dev-cmd",
|
||||||
"version": "1.12.0",
|
"version": "1.13.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"node_modules/@actions/core": {
|
"node_modules/@actions/core": {
|
||||||
"version": "1.9.1",
|
"version": "1.10.0",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.9.1.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz",
|
||||||
"integrity": "sha512-5ad+U2YGrmmiw6du20AQW5XuWo7UKN2052FjSV7MX+Wfjf8sCqcsZe62NfgHys4QI4/Y+vQvLKYL8jWtA1ZBTA==",
|
"integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/http-client": "^2.0.1",
|
"@actions/http-client": "^2.0.1",
|
||||||
"uuid": "^8.3.2"
|
"uuid": "^8.3.2"
|
||||||
|
|||||||
+15
-16
@@ -34,7 +34,6 @@ const file_command_1 = require("./file-command");
|
|||||||
const utils_1 = require("./utils");
|
const utils_1 = require("./utils");
|
||||||
const os = __importStar(require("os"));
|
const os = __importStar(require("os"));
|
||||||
const path = __importStar(require("path"));
|
const path = __importStar(require("path"));
|
||||||
const uuid_1 = require("uuid");
|
|
||||||
const oidc_utils_1 = require("./oidc-utils");
|
const oidc_utils_1 = require("./oidc-utils");
|
||||||
/**
|
/**
|
||||||
* The code to exit an action
|
* The code to exit an action
|
||||||
@@ -64,20 +63,9 @@ function exportVariable(name, val) {
|
|||||||
process.env[name] = convertedVal;
|
process.env[name] = convertedVal;
|
||||||
const filePath = process.env['GITHUB_ENV'] || '';
|
const filePath = process.env['GITHUB_ENV'] || '';
|
||||||
if (filePath) {
|
if (filePath) {
|
||||||
const delimiter = `ghadelimiter_${uuid_1.v4()}`;
|
return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val));
|
||||||
// These should realistically never happen, but just in case someone finds a way to exploit uuid generation let's not allow keys or values that contain the delimiter.
|
|
||||||
if (name.includes(delimiter)) {
|
|
||||||
throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`);
|
|
||||||
}
|
}
|
||||||
if (convertedVal.includes(delimiter)) {
|
|
||||||
throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`);
|
|
||||||
}
|
|
||||||
const commandValue = `${name}<<${delimiter}${os.EOL}${convertedVal}${os.EOL}${delimiter}`;
|
|
||||||
file_command_1.issueCommand('ENV', commandValue);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
command_1.issueCommand('set-env', { name }, convertedVal);
|
command_1.issueCommand('set-env', { name }, convertedVal);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
exports.exportVariable = exportVariable;
|
exports.exportVariable = exportVariable;
|
||||||
/**
|
/**
|
||||||
@@ -95,7 +83,7 @@ exports.setSecret = setSecret;
|
|||||||
function addPath(inputPath) {
|
function addPath(inputPath) {
|
||||||
const filePath = process.env['GITHUB_PATH'] || '';
|
const filePath = process.env['GITHUB_PATH'] || '';
|
||||||
if (filePath) {
|
if (filePath) {
|
||||||
file_command_1.issueCommand('PATH', inputPath);
|
file_command_1.issueFileCommand('PATH', inputPath);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
command_1.issueCommand('add-path', {}, inputPath);
|
command_1.issueCommand('add-path', {}, inputPath);
|
||||||
@@ -135,7 +123,10 @@ function getMultilineInput(name, options) {
|
|||||||
const inputs = getInput(name, options)
|
const inputs = getInput(name, options)
|
||||||
.split('\n')
|
.split('\n')
|
||||||
.filter(x => x !== '');
|
.filter(x => x !== '');
|
||||||
|
if (options && options.trimWhitespace === false) {
|
||||||
return inputs;
|
return inputs;
|
||||||
|
}
|
||||||
|
return inputs.map(input => input.trim());
|
||||||
}
|
}
|
||||||
exports.getMultilineInput = getMultilineInput;
|
exports.getMultilineInput = getMultilineInput;
|
||||||
/**
|
/**
|
||||||
@@ -168,8 +159,12 @@ exports.getBooleanInput = getBooleanInput;
|
|||||||
*/
|
*/
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
function setOutput(name, value) {
|
function setOutput(name, value) {
|
||||||
|
const filePath = process.env['GITHUB_OUTPUT'] || '';
|
||||||
|
if (filePath) {
|
||||||
|
return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value));
|
||||||
|
}
|
||||||
process.stdout.write(os.EOL);
|
process.stdout.write(os.EOL);
|
||||||
command_1.issueCommand('set-output', { name }, value);
|
command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value));
|
||||||
}
|
}
|
||||||
exports.setOutput = setOutput;
|
exports.setOutput = setOutput;
|
||||||
/**
|
/**
|
||||||
@@ -298,7 +293,11 @@ exports.group = group;
|
|||||||
*/
|
*/
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
function saveState(name, value) {
|
function saveState(name, value) {
|
||||||
command_1.issueCommand('save-state', { name }, value);
|
const filePath = process.env['GITHUB_STATE'] || '';
|
||||||
|
if (filePath) {
|
||||||
|
return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value));
|
||||||
|
}
|
||||||
|
command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value));
|
||||||
}
|
}
|
||||||
exports.saveState = saveState;
|
exports.saveState = saveState;
|
||||||
/**
|
/**
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
+2
-1
@@ -1 +1,2 @@
|
|||||||
export declare function issueCommand(command: string, message: any): void;
|
export declare function issueFileCommand(command: string, message: any): void;
|
||||||
|
export declare function prepareKeyValueMessage(key: string, value: any): string;
|
||||||
|
|||||||
+19
-3
@@ -20,13 +20,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.issueCommand = void 0;
|
exports.prepareKeyValueMessage = exports.issueFileCommand = void 0;
|
||||||
// We use any as a valid input type
|
// We use any as a valid input type
|
||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
const fs = __importStar(require("fs"));
|
const fs = __importStar(require("fs"));
|
||||||
const os = __importStar(require("os"));
|
const os = __importStar(require("os"));
|
||||||
|
const uuid_1 = require("uuid");
|
||||||
const utils_1 = require("./utils");
|
const utils_1 = require("./utils");
|
||||||
function issueCommand(command, message) {
|
function issueFileCommand(command, message) {
|
||||||
const filePath = process.env[`GITHUB_${command}`];
|
const filePath = process.env[`GITHUB_${command}`];
|
||||||
if (!filePath) {
|
if (!filePath) {
|
||||||
throw new Error(`Unable to find environment variable for file command ${command}`);
|
throw new Error(`Unable to find environment variable for file command ${command}`);
|
||||||
@@ -38,5 +39,20 @@ function issueCommand(command, message) {
|
|||||||
encoding: 'utf8'
|
encoding: 'utf8'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.issueCommand = issueCommand;
|
exports.issueFileCommand = issueFileCommand;
|
||||||
|
function prepareKeyValueMessage(key, value) {
|
||||||
|
const delimiter = `ghadelimiter_${uuid_1.v4()}`;
|
||||||
|
const convertedValue = utils_1.toCommandValue(value);
|
||||||
|
// These should realistically never happen, but just in case someone finds a
|
||||||
|
// way to exploit uuid generation let's not allow keys or values that contain
|
||||||
|
// the delimiter.
|
||||||
|
if (key.includes(delimiter)) {
|
||||||
|
throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`);
|
||||||
|
}
|
||||||
|
if (convertedValue.includes(delimiter)) {
|
||||||
|
throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`);
|
||||||
|
}
|
||||||
|
return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`;
|
||||||
|
}
|
||||||
|
exports.prepareKeyValueMessage = prepareKeyValueMessage;
|
||||||
//# sourceMappingURL=file-command.js.map
|
//# sourceMappingURL=file-command.js.map
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"file-command.js","sourceRoot":"","sources":["../src/file-command.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;;;;;;;;;;;;;;;;;;;;AAEvC,mCAAmC;AACnC,uDAAuD;AAEvD,uCAAwB;AACxB,uCAAwB;AACxB,mCAAsC;AAEtC,SAAgB,YAAY,CAAC,OAAe,EAAE,OAAY;IACxD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,OAAO,EAAE,CAAC,CAAA;IACjD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CACb,wDAAwD,OAAO,EAAE,CAClE,CAAA;KACF;IACD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAA;KACrD;IAED,EAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,sBAAc,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACjE,QAAQ,EAAE,MAAM;KACjB,CAAC,CAAA;AACJ,CAAC;AAdD,oCAcC"}
|
{"version":3,"file":"file-command.js","sourceRoot":"","sources":["../src/file-command.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;;;;;;;;;;;;;;;;;;;;AAEvC,mCAAmC;AACnC,uDAAuD;AAEvD,uCAAwB;AACxB,uCAAwB;AACxB,+BAAiC;AACjC,mCAAsC;AAEtC,SAAgB,gBAAgB,CAAC,OAAe,EAAE,OAAY;IAC5D,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,OAAO,EAAE,CAAC,CAAA;IACjD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CACb,wDAAwD,OAAO,EAAE,CAClE,CAAA;KACF;IACD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAA;KACrD;IAED,EAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,sBAAc,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACjE,QAAQ,EAAE,MAAM;KACjB,CAAC,CAAA;AACJ,CAAC;AAdD,4CAcC;AAED,SAAgB,sBAAsB,CAAC,GAAW,EAAE,KAAU;IAC5D,MAAM,SAAS,GAAG,gBAAgB,SAAM,EAAE,EAAE,CAAA;IAC5C,MAAM,cAAc,GAAG,sBAAc,CAAC,KAAK,CAAC,CAAA;IAE5C,4EAA4E;IAC5E,6EAA6E;IAC7E,iBAAiB;IACjB,IAAI,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QAC3B,MAAM,IAAI,KAAK,CACb,4DAA4D,SAAS,GAAG,CACzE,CAAA;KACF;IAED,IAAI,cAAc,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QACtC,MAAM,IAAI,KAAK,CACb,6DAA6D,SAAS,GAAG,CAC1E,CAAA;KACF;IAED,OAAO,GAAG,GAAG,KAAK,SAAS,GAAG,EAAE,CAAC,GAAG,GAAG,cAAc,GAAG,EAAE,CAAC,GAAG,GAAG,SAAS,EAAE,CAAA;AAC9E,CAAC;AApBD,wDAoBC"}
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/core",
|
"name": "@actions/core",
|
||||||
"version": "1.9.1",
|
"version": "1.10.0",
|
||||||
"description": "Actions core lib",
|
"description": "Actions core lib",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"github",
|
"github",
|
||||||
|
|||||||
Generated
+43
-35
@@ -1,24 +1,24 @@
|
|||||||
{
|
{
|
||||||
"name": "msvc-dev-cmd",
|
"name": "msvc-dev-cmd",
|
||||||
"version": "1.12.0",
|
"version": "1.13.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "msvc-dev-cmd",
|
"name": "msvc-dev-cmd",
|
||||||
"version": "1.12.0",
|
"version": "1.13.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.9.1"
|
"@actions/core": "^1.10.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^7"
|
"eslint": "^7"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/core": {
|
"node_modules/@actions/core": {
|
||||||
"version": "1.9.1",
|
"version": "1.10.0",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.9.1.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz",
|
||||||
"integrity": "sha512-5ad+U2YGrmmiw6du20AQW5XuWo7UKN2052FjSV7MX+Wfjf8sCqcsZe62NfgHys4QI4/Y+vQvLKYL8jWtA1ZBTA==",
|
"integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/http-client": "^2.0.1",
|
"@actions/http-client": "^2.0.1",
|
||||||
"uuid": "^8.3.2"
|
"uuid": "^8.3.2"
|
||||||
@@ -343,12 +343,20 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/debug": {
|
"node_modules/debug": {
|
||||||
"version": "4.1.1",
|
"version": "4.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
||||||
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
|
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ms": "^2.1.1"
|
"ms": "2.1.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6.0"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"supports-color": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/deep-is": {
|
"node_modules/deep-is": {
|
||||||
@@ -873,9 +881,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/minimatch": {
|
"node_modules/minimatch": {
|
||||||
"version": "3.0.4",
|
"version": "3.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
|
||||||
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
|
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"brace-expansion": "^1.1.7"
|
"brace-expansion": "^1.1.7"
|
||||||
@@ -1025,9 +1033,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/semver": {
|
"node_modules/semver": {
|
||||||
"version": "7.3.5",
|
"version": "7.5.4",
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz",
|
"resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",
|
||||||
"integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==",
|
"integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lru-cache": "^6.0.0"
|
"lru-cache": "^6.0.0"
|
||||||
@@ -1249,9 +1257,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/word-wrap": {
|
"node_modules/word-wrap": {
|
||||||
"version": "1.2.3",
|
"version": "1.2.5",
|
||||||
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
|
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
|
||||||
"integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",
|
"integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
@@ -1272,9 +1280,9 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": {
|
"@actions/core": {
|
||||||
"version": "1.9.1",
|
"version": "1.10.0",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.9.1.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz",
|
||||||
"integrity": "sha512-5ad+U2YGrmmiw6du20AQW5XuWo7UKN2052FjSV7MX+Wfjf8sCqcsZe62NfgHys4QI4/Y+vQvLKYL8jWtA1ZBTA==",
|
"integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@actions/http-client": "^2.0.1",
|
"@actions/http-client": "^2.0.1",
|
||||||
"uuid": "^8.3.2"
|
"uuid": "^8.3.2"
|
||||||
@@ -1532,12 +1540,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"debug": {
|
"debug": {
|
||||||
"version": "4.1.1",
|
"version": "4.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
||||||
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
|
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"ms": "^2.1.1"
|
"ms": "2.1.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"deep-is": {
|
"deep-is": {
|
||||||
@@ -1952,9 +1960,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"minimatch": {
|
"minimatch": {
|
||||||
"version": "3.0.4",
|
"version": "3.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
|
||||||
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
|
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"brace-expansion": "^1.1.7"
|
"brace-expansion": "^1.1.7"
|
||||||
@@ -2062,9 +2070,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"semver": {
|
"semver": {
|
||||||
"version": "7.3.5",
|
"version": "7.5.4",
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz",
|
"resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",
|
||||||
"integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==",
|
"integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"lru-cache": "^6.0.0"
|
"lru-cache": "^6.0.0"
|
||||||
@@ -2227,9 +2235,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"word-wrap": {
|
"word-wrap": {
|
||||||
"version": "1.2.3",
|
"version": "1.2.5",
|
||||||
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
|
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
|
||||||
"integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",
|
"integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"wrappy": {
|
"wrappy": {
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "msvc-dev-cmd",
|
"name": "msvc-dev-cmd",
|
||||||
"version": "1.12.0",
|
"version": "1.13.0",
|
||||||
"description": "GitHub Action to setup Developer Command Prompt for Microsoft Visual C++",
|
"description": "GitHub Action to setup Developer Command Prompt for Microsoft Visual C++",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/ilammy/msvc-dev-cmd#readme",
|
"homepage": "https://github.com/ilammy/msvc-dev-cmd#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.9.1"
|
"@actions/core": "^1.10.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^7"
|
"eslint": "^7"
|
||||||
|
|||||||
Reference in New Issue
Block a user