ci: remove redundant Compute version + Resolve tools steps (cause job to fail on act_runner)

Everything is now inlined in the single transcript-wrapped step.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-11 17:04:16 +00:00
parent b8327829e8
commit fea624e9ce
-35
View File
@@ -170,41 +170,6 @@ jobs:
if (-not $installPath) { throw "No VS installation with the Office workload found on this runner." } if (-not $installPath) { throw "No VS installation with the Office workload found on this runner." }
Add-Content -Path $env:GITHUB_PATH -Value (Join-Path $installPath 'MSBuild\Current\Bin') Add-Content -Path $env:GITHUB_PATH -Value (Join-Path $installPath 'MSBuild\Current\Bin')
- name: Resolve mage.exe + signtool.exe paths
id: tools
shell: powershell
run: |
# mage.exe lives under .NET 4.8 Developer Pack. Find any installed copy.
$mage = Get-ChildItem 'C:\Program Files (x86)\Microsoft SDKs\Windows' -Recurse -Filter mage.exe -ErrorAction SilentlyContinue |
Sort-Object FullName -Descending | Select-Object -First 1
if (-not $mage) { throw "mage.exe not found" }
# signtool.exe lives under Windows SDK. Pick the highest-version x64 copy.
$signtool = Get-ChildItem 'C:\Program Files (x86)\Windows Kits\10\bin' -Recurse -Filter signtool.exe -ErrorAction SilentlyContinue |
Where-Object { $_.FullName -like '*\x64\*' } |
Sort-Object { [version](Split-Path -Leaf (Split-Path -Parent (Split-Path -Parent $_.FullName))) } -Descending |
Select-Object -First 1
if (-not $signtool) { throw "signtool.exe not found" }
Write-Host "MAGE: $($mage.FullName)"
Write-Host "SIGNTOOL: $($signtool.FullName)"
"MAGE=$($mage.FullName)" | Out-File -Append $env:GITHUB_ENV
"SIGNTOOL=$($signtool.FullName)" | Out-File -Append $env:GITHUB_ENV
- name: Compute version from tag
id: ver
shell: powershell
run: |
$tag = "${{ github.ref_name }}"
if ($tag -notmatch '^v(\d+\.\d+\.\d+)$') {
throw "Tag $tag is not in vMAJOR.MINOR.PATCH form"
}
$version = "$($Matches[1]).0"
"version=$version" | Out-File -Append $env:GITHUB_OUTPUT
"versionDot=$($Matches[1])" | Out-File -Append $env:GITHUB_OUTPUT
"versionUscore=$($version -replace '\.','_')" | Out-File -Append $env:GITHUB_OUTPUT
Write-Host "Version: $version"
- name: Publish ClickOnce (single step with transcript) - name: Publish ClickOnce (single step with transcript)
shell: powershell shell: powershell
env: env: