30
30
inputs :
31
31
rustVersion : ms-stable
32
32
toolchainFeed : https://pkgs.dev.azure.com/mscodehub/Rust/_packaging/Rust/nuget/v3/index.json
33
- additionalTargets : $( buildName)
33
+ additionalTargets : ${{ parameters. buildName }}
34
34
displayName : Install Rust
35
35
env :
36
36
ob_restore_phase : true
42
42
}
43
43
$env:PATH += ";$LLVMBIN"
44
44
write-verbose -verbose (gcm clang.exe | out-string)
45
- ./build.ps1 -Release -Architecture $( buildName) -SkipLinkCheck
46
- displayName : ' Build $( buildName) '
45
+ ./build.ps1 -Release -Architecture ${{ parameters. buildName }} -SkipLinkCheck
46
+ displayName : ' Build ${{ parameters. buildName }} '
47
47
env :
48
48
ob_restore_phase : true
49
49
condition : succeeded()
@@ -52,17 +52,17 @@ steps:
52
52
env :
53
53
ob_restore_phase : true
54
54
- pwsh : |
55
- $null = New-Item -ItemType Directory -Path "$( PackageRoot) " -ErrorAction Ignore
56
- $null = New-Item -ItemType Directory -Path "$( PackageRoot) /out" -ErrorAction Ignore
57
- $null = New-Item -ItemType Directory -Path "$( signSrcPath) " -ErrorAction Ignore
55
+ $null = New-Item -ItemType Directory -Path "${{ parameters. PackageRoot }} " -ErrorAction Ignore
56
+ $null = New-Item -ItemType Directory -Path "${{ parameters. PackageRoot }} /out" -ErrorAction Ignore
57
+ $null = New-Item -ItemType Directory -Path "${{ parameters. signSrcPath }} " -ErrorAction Ignore
58
58
# workaround known issue of building in OneBranch copying from TMP folder
59
- $null = New-Item -ItemType Directory -Path "$( signSrcPath) " -ErrorAction Ignore
59
+ $null = New-Item -ItemType Directory -Path "${{ parameters. signSrcPath }} " -ErrorAction Ignore
60
60
# copy only the exes from the TMP folder since it contains intermediately built files we don't want to sign
61
61
write-host 'Binaries in $(env:CARGO_TARGET_DIR)'
62
- Copy-Item -Path "$env:CARGO_TARGET_DIR/$( buildName)/$( BuildConfiguration) /*.exe" -Destination "$( signSrcPath) " -Verbose
63
- Copy-Item -Path "$(Build.SourcesDirectory)/DSC/bin/$( buildName)/$( BuildConfiguration) /*" -Recurse -Destination "$( signSrcPath) " -Verbose -Force
64
- write-host 'Binaries in $( signSrcPath) '
65
- dir -r "$( signSrcPath) "
62
+ Copy-Item -Path "$env:CARGO_TARGET_DIR/${{ parameters. buildName }}/${{ parameters. BuildConfiguration }} /*.exe" -Destination "${{ parameters. signSrcPath }} " -Verbose
63
+ Copy-Item -Path "$(Build.SourcesDirectory)/DSC/bin/${{ parameters. buildName }}/${{ parameters. BuildConfiguration }} /*" -Recurse -Destination "${{ parameters. signSrcPath }} " -Verbose -Force
64
+ write-host 'Binaries in ${{ parameters. signSrcPath }} '
65
+ dir -r "${{ parameters. signSrcPath }} "
66
66
displayName : Copy built binaries
67
67
env :
68
68
ob_restore_phase : true
@@ -77,23 +77,23 @@ steps:
77
77
**\*.ps1;
78
78
**\*.psd1;
79
79
**\*.psm1;
80
- search_root : $( signSrcPath)
80
+ search_root : ${{ parameters. signSrcPath }}
81
81
- task : CopyFiles@2
82
82
displayName : " Copy signed files to build target dir"
83
83
inputs :
84
- SourceFolder : " $( signSrcPath) "
84
+ SourceFolder : " ${{ parameters. signSrcPath }} "
85
85
Contents : ' **'
86
- TargetFolder : $(Build.SourcesDirectory)/DSC/bin/$( buildName)/$( BuildConfiguration)
86
+ TargetFolder : $(Build.SourcesDirectory)/DSC/bin/${{ parameters. buildName }}/${{ parameters. BuildConfiguration }}
87
87
OverWrite : true
88
88
- pwsh : |
89
89
Set-Location "$(Build.SourcesDirectory)/DSC"
90
- ./build.ps1 -PackageType zip -Architecture $( buildName) -Release
90
+ ./build.ps1 -PackageType zip -Architecture ${{ parameters. buildName }} -Release
91
91
Copy-Item ./bin/*.zip "$(Build.ArtifactStagingDirectory)" -Verbose
92
- displayName : ' Zip $( buildName) '
92
+ displayName : ' Zip ${{ parameters. buildName }} '
93
93
condition : succeeded()
94
94
- pwsh : |
95
95
Set-Location "$(Build.SourcesDirectory)/DSC"
96
- ./build.ps1 -PackageType msix -Architecture $( buildName) -Release -UseX64MakeAppx
96
+ ./build.ps1 -PackageType msix -Architecture ${{ parameters. buildName }} -Release -UseX64MakeAppx
97
97
Copy-Item ./bin/msix/*.msix "$(Build.ArtifactStagingDirectory)" -Verbose
98
- displayName : ' Create msix for $( buildName) '
98
+ displayName : ' Create msix for ${{ parameters. buildName }} '
99
99
condition : succeeded()
0 commit comments