Skip to content

Commit 8b05ca5

Browse files
committed
rename "buildArch" to "BUILD_ARCH"
Co-authored-by: Amin Yahyaabadi <[email protected]>
1 parent 19b5177 commit 8b05ca5

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

script/vsts/platforms/templates/preparation.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@ steps:
2828
- script: npm install --global [email protected]
2929
displayName: Update npm
3030

31-
# Use Azure Syntax to set env variables for all shells and steps
32-
- pwsh: |
33-
if ($env:AGENT_OS -eq "Windows_NT") {
34-
$env:BUILD_ARCH=$env:buildArch
35-
echo "##vso[task.setvariable variable=BUILD_ARCH]$env:BUILD_ARCH"
36-
}
37-
displayName: Setting globally used env variables
38-
3931
# Windows Specific
4032
- task: UsePythonVersion@0
4133
inputs:

script/vsts/platforms/windows.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jobs:
66
maxParallel: 2
77
matrix:
88
x64:
9-
buildArch: x64
9+
BUILD_ARCH: x64
1010
x86:
11-
buildArch: x86
11+
BUILD_ARCH: x86
1212

1313
pool:
1414
vmImage: vs2017-win2016
@@ -30,7 +30,7 @@ jobs:
3030

3131
- script: node script\vsts\windows-run.js script\lint.cmd
3232
env:
33-
BUILD_ARCH: $(buildArch)
33+
BUILD_ARCH: $(BUILD_ARCH)
3434
displayName: Run linter
3535

3636
- template: templates/build.yml
@@ -46,7 +46,7 @@ jobs:
4646
}
4747
echo "##vso[task.setvariable variable=FileID]$env:FileID" # Azure syntax
4848
env:
49-
BUILD_ARCH: $(buildArch)
49+
BUILD_ARCH: $(BUILD_ARCH)
5050
displayName: Set FileID based on the arch
5151
5252
- template: templates/publish.yml

0 commit comments

Comments
 (0)