Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,24 @@ jobs:
- name: Prepare runner
run: |
rustup toolchain install nightly
choco install pstools --yes

# The pstools Chocolatey package is unreliable: it downloads PSTools.zip from
# Microsoft at install time, and its pinned checksum breaks whenever Microsoft
# updates the zip. Download it directly and verify against our own checksum
# instead; bump the hash deliberately when Microsoft publishes a new PSTools.
- name: Install PsExec
shell: pwsh
run: |
$expectedHash = '4F49964CC9CBAC2B5D87BDC8F9526012E9C4B243D8B7D0C0BB51F254A721CA2E'
$zipPath = Join-Path $env:RUNNER_TEMP 'PSTools.zip'
$toolsDir = Join-Path $env:RUNNER_TEMP 'PSTools'
Invoke-WebRequest -Uri 'https://download.sysinternals.com/files/PSTools.zip' -OutFile $zipPath
$actualHash = (Get-FileHash -Path $zipPath -Algorithm SHA256).Hash
if ($actualHash -ne $expectedHash) {
throw "PSTools.zip checksum mismatch: expected $expectedHash, got $actualHash"
}
Expand-Archive -Path $zipPath -DestinationPath $toolsDir
Add-Content -Path $env:GITHUB_PATH -Value $toolsDir

# The Docker service for Windows containers may not be started yet at this point.
# Starting it explicitly avoids flaky failures when the daemon is not ready.
Expand Down
Loading