Skip to content

Commit f1b8f2e

Browse files
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)SteveL-MSFT
authored andcommitted
move cargo to restore phase
1 parent d0dee3a commit f1b8f2e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.pipelines/DSC-Official.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,14 @@ extends:
123123
cratesIoFeedOverride: sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/
124124
additionalTargets: $(buildTarget)
125125
displayName: Install Rust
126+
env:
127+
ob_restore_phase: true
126128
- task: CargoAuthenticate@0
127129
inputs:
128130
configFile: ".cargo/config.toml"
129131
displayName: Authenticating cargo crates registry
132+
env:
133+
ob_restore_phase: true
130134
- pwsh: |
131135
Set-Location "$(Build.SourcesDirectory)/DSC"
132136
Write-Host "Use 'powershell' CFS"
@@ -244,10 +248,14 @@ extends:
244248
cratesIoFeedOverride: sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/
245249
additionalTargets: x86_64-unknown-linux-gnu
246250
displayName: Install Rust
251+
env:
252+
ob_restore_phase: true
247253
- task: CargoAuthenticate@0
248254
inputs:
249255
configFile: ".cargo/config.toml"
250256
displayName: Authenticating cargo crates registry
257+
env:
258+
ob_restore_phase: true
251259
- pwsh: |
252260
Write-Host "Use 'powershell' CFS"
253261
Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'
@@ -275,10 +283,14 @@ extends:
275283
cratesIoFeedOverride: sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/
276284
additionalTargets: aarch64-unknown-linux-gnu
277285
displayName: Install Rust
286+
env:
287+
ob_restore_phase: true
278288
- task: CargoAuthenticate@0
279289
inputs:
280290
configFile: ".cargo/config.toml"
281291
displayName: Authenticating cargo crates registry
292+
env:
293+
ob_restore_phase: true
282294
- pwsh: |
283295
Write-Host "Use 'powershell' CFS"
284296
Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'
@@ -314,10 +326,14 @@ extends:
314326
cratesIoFeedOverride: sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/
315327
additionalTargets: $(buildTarget)
316328
displayName: Install Rust
329+
env:
330+
ob_restore_phase: true
317331
- task: CargoAuthenticate@0
318332
inputs:
319333
configFile: ".cargo/config.toml"
320334
displayName: Authenticating cargo crates registry
335+
env:
336+
ob_restore_phase: true
321337
- pwsh: |
322338
Write-Host "Use 'powershell' CFS"
323339
Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'

0 commit comments

Comments
 (0)