@@ -116,15 +116,6 @@ extends:
116
116
displayName: 🛠️ Workaround for the LoadLibrary ACCESS_VIOLATION OneBranch issue
117
117
env:
118
118
ob_restore_phase: true
119
- - task : RustInstaller@1
120
- inputs :
121
- rustVersion : ms-stable
122
- toolchainFeed : https://pkgs.dev.azure.com/mscodehub/Rust/_packaging/Rust/nuget/v3/index.json
123
- # cratesIoFeedOverride: sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/
124
- additionalTargets : $(buildName)
125
- displayName : Install Rust
126
- env :
127
- ob_restore_phase : true
128
119
- task : AzureCLI@2
129
120
inputs :
130
121
azureSubscription : az-PowerShell-feed-ingestion
@@ -136,13 +127,22 @@ extends:
136
127
# Set the access token as a secret, so it doesn't get leaked in the logs
137
128
Write-Host "##vso[task.setsecret]$accessToken"
138
129
$header = "Bearer $accessToken"
139
- # Write-Host "##vso[task.setvariable variable=CARGO_REGISTRIES_POWERSHELL_TOKEN]$header"
130
+ Write-Host "##vso[task.setvariable variable=CARGO_REGISTRIES_POWERSHELL_TOKEN]$header"
140
131
141
132
$credentialProvider = "cargo:token"
142
- # Write-Host "##[task.setvariable variable=CARGO_REGISTRIES_POWERSHELL_CREDENTIAL_PROVIDER]$credentialProvider"
133
+ Write-Host "##[task.setvariable variable=CARGO_REGISTRIES_POWERSHELL_CREDENTIAL_PROVIDER]$credentialProvider"
143
134
displayName : ' Get Azure DevOps Token'
144
135
env :
145
136
ob_restore_phase : true
137
+ - task : RustInstaller@1
138
+ inputs :
139
+ rustVersion : ms-stable
140
+ toolchainFeed : https://pkgs.dev.azure.com/mscodehub/Rust/_packaging/Rust/nuget/v3/index.json
141
+ cratesIoFeedOverride : sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/
142
+ additionalTargets : $(buildName)
143
+ displayName : Install Rust
144
+ env :
145
+ ob_restore_phase : true
146
146
- pwsh : |
147
147
Set-Location "$(Build.SourcesDirectory)/DSC"
148
148
Write-Host "Use 'powershell' CFS"
@@ -253,15 +253,6 @@ extends:
253
253
pool :
254
254
type : linux
255
255
steps :
256
- - task : RustInstaller@1
257
- inputs :
258
- rustVersion : ms-stable
259
- toolchainFeed : https://pkgs.dev.azure.com/mscodehub/Rust/_packaging/Rust/nuget/v3/index.json
260
- # cratesIoFeedOverride: sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/
261
- additionalTargets : x86_64-unknown-linux-gnu
262
- displayName : Install Rust
263
- env :
264
- ob_restore_phase : true
265
256
- task : AzureCLI@2
266
257
inputs :
267
258
azureSubscription : az-PowerShell-feed-ingestion
@@ -273,13 +264,22 @@ extends:
273
264
# Set the access token as a secret, so it doesn't get leaked in the logs
274
265
Write-Host "##vso[task.setsecret]$accessToken"
275
266
$header = "Bearer $accessToken"
276
- # Write-Host "##vso[task.setvariable variable=CARGO_REGISTRIES_POWERSHELL_TOKEN]$header"
267
+ Write-Host "##vso[task.setvariable variable=CARGO_REGISTRIES_POWERSHELL_TOKEN]$header"
277
268
278
269
$credentialProvider = "cargo:token"
279
- # Write-Host "##[task.setvariable variable=CARGO_REGISTRIES_POWERSHELL_CREDENTIAL_PROVIDER]$credentialProvider"
270
+ Write-Host "##[task.setvariable variable=CARGO_REGISTRIES_POWERSHELL_CREDENTIAL_PROVIDER]$credentialProvider"
280
271
displayName : ' Get Azure DevOps Token'
281
272
env :
282
273
ob_restore_phase : true
274
+ - task : RustInstaller@1
275
+ inputs :
276
+ rustVersion : ms-stable
277
+ toolchainFeed : https://pkgs.dev.azure.com/mscodehub/Rust/_packaging/Rust/nuget/v3/index.json
278
+ cratesIoFeedOverride : sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/
279
+ additionalTargets : x86_64-unknown-linux-gnu
280
+ displayName : Install Rust
281
+ env :
282
+ ob_restore_phase : true
283
283
- pwsh : |
284
284
Write-Host "Use 'powershell' CFS"
285
285
#Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'
@@ -300,15 +300,6 @@ extends:
300
300
type : linux
301
301
hostArchitecture : arm64
302
302
steps :
303
- - task : RustInstaller@1
304
- inputs :
305
- rustVersion : ms-stable
306
- toolchainFeed : https://pkgs.dev.azure.com/mscodehub/Rust/_packaging/Rust/nuget/v3/index.json
307
- # cratesIoFeedOverride: sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/
308
- additionalTargets : aarch64-unknown-linux-gnu
309
- displayName : Install Rust
310
- env :
311
- ob_restore_phase : true
312
303
- task : AzureCLI@2
313
304
inputs :
314
305
azureSubscription : az-PowerShell-feed-ingestion
@@ -320,13 +311,22 @@ extends:
320
311
# Set the access token as a secret, so it doesn't get leaked in the logs
321
312
Write-Host "##vso[task.setsecret]$accessToken"
322
313
$header = "Bearer $accessToken"
323
- # Write-Host "##vso[task.setvariable variable=CARGO_REGISTRIES_POWERSHELL_TOKEN]$header"
314
+ Write-Host "##vso[task.setvariable variable=CARGO_REGISTRIES_POWERSHELL_TOKEN]$header"
324
315
325
316
$credentialProvider = "cargo:token"
326
- # Write-Host "##[task.setvariable variable=CARGO_REGISTRIES_POWERSHELL_CREDENTIAL_PROVIDER]$credentialProvider"
317
+ Write-Host "##[task.setvariable variable=CARGO_REGISTRIES_POWERSHELL_CREDENTIAL_PROVIDER]$credentialProvider"
327
318
displayName : ' Get Azure DevOps Token'
328
319
env :
329
320
ob_restore_phase : true
321
+ - task : RustInstaller@1
322
+ inputs :
323
+ rustVersion : ms-stable
324
+ toolchainFeed : https://pkgs.dev.azure.com/mscodehub/Rust/_packaging/Rust/nuget/v3/index.json
325
+ cratesIoFeedOverride : sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/
326
+ additionalTargets : aarch64-unknown-linux-gnu
327
+ displayName : Install Rust
328
+ env :
329
+ ob_restore_phase : true
330
330
- pwsh : |
331
331
Write-Host "Use 'powershell' CFS"
332
332
#Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'
@@ -355,15 +355,6 @@ extends:
355
355
macOS arm64 :
356
356
buildName : aarch64-apple-darwin
357
357
steps :
358
- - task : RustInstaller@1
359
- inputs :
360
- rustVersion : ms-stable
361
- toolchainFeed : https://pkgs.dev.azure.com/mscodehub/Rust/_packaging/Rust/nuget/v3/index.json
362
- # cratesIoFeedOverride: sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/
363
- additionalTargets : $(buildName)
364
- displayName : Install Rust
365
- env :
366
- ob_restore_phase : true
367
358
- task : AzureCLI@2
368
359
inputs :
369
360
azureSubscription : az-PowerShell-feed-ingestion
@@ -375,13 +366,22 @@ extends:
375
366
# Set the access token as a secret, so it doesn't get leaked in the logs
376
367
Write-Host "##vso[task.setsecret]$accessToken"
377
368
$header = "Bearer $accessToken"
378
- # Write-Host "##vso[task.setvariable variable=CARGO_REGISTRIES_POWERSHELL_TOKEN]$header"
369
+ Write-Host "##vso[task.setvariable variable=CARGO_REGISTRIES_POWERSHELL_TOKEN]$header"
379
370
380
371
$credentialProvider = "cargo:token"
381
- # Write-Host "##[task.setvariable variable=CARGO_REGISTRIES_POWERSHELL_CREDENTIAL_PROVIDER]$credentialProvider"
372
+ Write-Host "##[task.setvariable variable=CARGO_REGISTRIES_POWERSHELL_CREDENTIAL_PROVIDER]$credentialProvider"
382
373
displayName : ' Get Azure DevOps Token'
383
374
env :
384
375
ob_restore_phase : true
376
+ - task : RustInstaller@1
377
+ inputs :
378
+ rustVersion : ms-stable
379
+ toolchainFeed : https://pkgs.dev.azure.com/mscodehub/Rust/_packaging/Rust/nuget/v3/index.json
380
+ cratesIoFeedOverride : sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/
381
+ additionalTargets : $(buildName)
382
+ displayName : Install Rust
383
+ env :
384
+ ob_restore_phase : true
385
385
- pwsh : |
386
386
Write-Host "Use 'powershell' CFS"
387
387
#Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'
0 commit comments