Skip to content

Commit e5313ac

Browse files
committed
move rustup command to only for builds
1 parent 7f5ed5d commit e5313ac

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.pipelines/DSC-Official.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ extends:
180180
- pwsh: |
181181
Set-Location "$(Build.SourcesDirectory)/DSC"
182182
./build.ps1 -PackageType zip -Architecture $(buildName) -Release
183-
Copy-Item ./bin/*.zip "$(ob_outputDirectory)"
183+
Copy-Item ./bin/*.zip "$(ob_outputDirectory)" -Verbose
184184
displayName: 'Zip $(buildName)'
185185
condition: succeeded()
186186
- pwsh: |
@@ -286,7 +286,7 @@ extends:
286286
- pwsh: |
287287
Set-Location "$(Build.SourcesDirectory)/DSC"
288288
./build.ps1 -PackageType zip -Architecture $(buildName) -Release
289-
Copy-Item ./bin/*.zip "$(ob_outputDirectory)"
289+
Copy-Item ./bin/*.zip "$(ob_outputDirectory)" -Verbose
290290
displayName: 'Zip $(buildName)'
291291
condition: succeeded()
292292
- pwsh: |

build.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,15 @@ if ($architecture -eq 'current') {
198198
$target = Join-Path $PSScriptRoot 'bin' $configuration
199199
}
200200
else {
201-
& $rustup target add --toolchain $channel $architecture
202201
$flags += '--target'
203202
$flags += $architecture
204203
$path = ".\target\$architecture\$configuration"
205204
$target = Join-Path $PSScriptRoot 'bin' $architecture $configuration
206205
}
207206

208207
if (!$SkipBuild) {
208+
& $rustup target add --toolchain $channel $architecture
209+
209210
if (Test-Path $target) {
210211
Remove-Item $target -Recurse -ErrorAction Ignore
211212
}

tree-sitter-dscexpression/build.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ if ($null -eq (Get-Command tree-sitter -ErrorAction Ignore)) {
1818
cargo install tree-sitter-cli
1919
}
2020

21+
Invoke-NativeCommand 'tree-sitter init --update'
2122
Invoke-NativeCommand 'tree-sitter generate --build'
2223
Invoke-NativeCommand 'tree-sitter test'

0 commit comments

Comments
 (0)