Adding arm64 detection

This commit is contained in:
Tim Heuer
2022-11-07 16:54:38 -07:00
parent 0b44c6745b
commit 1bba226ea3
3 changed files with 15 additions and 7 deletions

View File

@ -71,12 +71,12 @@ async function run(): Promise<void> {
const installationPath = data.toString().trim()
core.debug(`Found installation path: ${installationPath}`)
// x64 only exists in one possible location, so no fallback probing
if (MSBUILD_ARCH === "x64") {
// x64 and arm64 only exist in one possible location, so no fallback probing
if (MSBUILD_ARCH === 'x64' || MSBUILD_ARCH === 'arm64') {
let toolPath = path.join(
installationPath,
'MSBuild\\Current\\Bin\\amd64\\MSBuild.exe'
);
'MSBuild\\Current\\Bin\\${MSBUILD_ARCH}\\MSBuild.exe'
)
core.debug(`Checking for path: ${toolPath}`)
if (!fs.existsSync(toolPath)) {
return