@@ -116,6 +116,15 @@ 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
119
128
- task : AzureCLI@2
120
129
inputs :
121
130
azureSubscription : az-PowerShell-feed-ingestion
@@ -134,15 +143,6 @@ extends:
134
143
displayName : ' Get Azure DevOps Token'
135
144
env :
136
145
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"
@@ -284,11 +284,6 @@ extends:
284
284
Write-Host "Use 'powershell' CFS"
285
285
Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'
286
286
Add-Content -Path "./.cargo/config.toml" -Value 'replace-with = "powershell"'
287
- Add-Content -Path "./.cargo/config.toml" -Value '[registry]'
288
- Add-Content -Path "./.cargo/config.toml" -Value 'global-credential-provider = ["cargo:token"]'
289
-
290
- $env:CARGO_HTTP_DEBUG=true
291
- $env:CARGO_LOG='network=trace'
292
287
293
288
./build.ps1 -Release -Architecture x86_64-unknown-linux-gnu
294
289
./build.ps1 -PackageType tgz -Architecture x86_64-unknown-linux-gnu -Release
@@ -306,6 +301,15 @@ extends:
306
301
type : linux
307
302
hostArchitecture : arm64
308
303
steps :
304
+ - task : RustInstaller@1
305
+ inputs :
306
+ rustVersion : ms-stable
307
+ toolchainFeed : https://pkgs.dev.azure.com/mscodehub/Rust/_packaging/Rust/nuget/v3/index.json
308
+ # cratesIoFeedOverride: sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/
309
+ additionalTargets : aarch64-unknown-linux-gnu
310
+ displayName : Install Rust
311
+ env :
312
+ ob_restore_phase : true
309
313
- task : AzureCLI@2
310
314
inputs :
311
315
azureSubscription : az-PowerShell-feed-ingestion
@@ -324,15 +328,6 @@ extends:
324
328
displayName : ' Get Azure DevOps Token'
325
329
env :
326
330
ob_restore_phase : true
327
- - task : RustInstaller@1
328
- inputs :
329
- rustVersion : ms-stable
330
- toolchainFeed : https://pkgs.dev.azure.com/mscodehub/Rust/_packaging/Rust/nuget/v3/index.json
331
- # cratesIoFeedOverride: sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/
332
- additionalTargets : aarch64-unknown-linux-gnu
333
- displayName : Install Rust
334
- env :
335
- ob_restore_phase : true
336
331
- pwsh : |
337
332
Write-Host "Use 'powershell' CFS"
338
333
Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'
@@ -361,6 +356,15 @@ extends:
361
356
macOS arm64 :
362
357
buildName : aarch64-apple-darwin
363
358
steps :
359
+ - task : RustInstaller@1
360
+ inputs :
361
+ rustVersion : ms-stable
362
+ toolchainFeed : https://pkgs.dev.azure.com/mscodehub/Rust/_packaging/Rust/nuget/v3/index.json
363
+ # cratesIoFeedOverride: sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/
364
+ additionalTargets : $(buildName)
365
+ displayName : Install Rust
366
+ env :
367
+ ob_restore_phase : true
364
368
- task : AzureCLI@2
365
369
inputs :
366
370
azureSubscription : az-PowerShell-feed-ingestion
@@ -379,19 +383,18 @@ extends:
379
383
displayName : ' Get Azure DevOps Token'
380
384
env :
381
385
ob_restore_phase : true
382
- - task : RustInstaller@1
383
- inputs :
384
- rustVersion : ms-stable
385
- toolchainFeed : https://pkgs.dev.azure.com/mscodehub/Rust/_packaging/Rust/nuget/v3/index.json
386
- # cratesIoFeedOverride: sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/
387
- additionalTargets : $(buildName)
388
- displayName : Install Rust
389
- env :
390
- ob_restore_phase : true
391
386
- pwsh : |
392
387
Write-Host "Use 'powershell' CFS"
393
388
Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'
394
389
Add-Content -Path "./.cargo/config.toml" -Value 'replace-with = "powershell"'
390
+ Add-Content -Path "./.cargo/config.toml" -Value '[registry]'
391
+ Add-Content -Path "./.cargo/config.toml" -Value 'global-credential-provider = ["cargo:token"]'
392
+
393
+ $c = get-content "./.cargo/config.toml" | Out-String
394
+ Write-Host $c
395
+
396
+ $env:CARGO_HTTP_DEBUG=true
397
+ $env:CARGO_LOG='network=trace'
395
398
./build.ps1 -Release -Architecture $(buildName)
396
399
./build.ps1 -PackageType tgz -Architecture $(buildName) -Release
397
400
Copy-Item ./bin/*.tar.gz "$(ob_outputDirectory)"
0 commit comments