From a049c0af5efe9b43e8f4d73c16064c42b4f089c7 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Sat, 19 Oct 2024 13:28:25 +0700 Subject: [PATCH] azure-pipelines.yml: Setup BuildPlatform env variable for current pipeline --- azure-pipelines.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 74f46ddcb7..9c8282fda1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -109,6 +109,8 @@ stages: - pwsh: | $configuration = if ($env:BUILDCONFIGURATION) { $env:BUILDCONFIGURATION } else { "Release" } Write-Host "##vso[task.setvariable variable=BuildConfiguration;]$configuration" + $platform = if ($env:BUILDPLATFORM) { $env:BUILDPLATFORM } else { "Any CPU" } + Write-Host "##vso[task.setvariable variable=BuildPlatform;]$platform" $isRelease = if ($env:ISRELEASE -eq 'true') { 'true' } else { 'false' } Write-Host "##vso[task.setvariable variable=IsRelease;]$isRelease" $isNightly = if ($env:ISNIGHTLY -eq 'true') { 'true' } else { 'false' }