mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 07:46:12 +03:00
fix: update zig version regex in windows build workflow (#4847)
The [Windows build job in the test workflow was
failing](https://github.com/ghostty-org/ghostty/actions/runs/12679651693/job/35339885415)
because it couldn't extract
the Zig version from _build.zig_. This was caused by a recent refactor
that changed
[how the Zig version is
specified](eb40cce45e (diff-f87bb3596894756629bc39d595fb18d479dc4edf168d93a911cadcb060f10fccR6)
)
in _build.zig_.
This commit is contained in:
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -247,10 +247,10 @@ jobs:
|
||||
run: |
|
||||
# Get the zig version from build.zig so that it only needs to be updated
|
||||
$fileContent = Get-Content -Path "build.zig" -Raw
|
||||
$pattern = 'const required_zig = "(.*?)";'
|
||||
$pattern = 'buildpkg\.requireZig\("(.*?)"\);'
|
||||
$zigVersion = [regex]::Match($fileContent, $pattern).Groups[1].Value
|
||||
Write-Output $version
|
||||
$version = "zig-windows-x86_64-$zigVersion"
|
||||
Write-Output $version
|
||||
$uri = "https://ziglang.org/download/$zigVersion/$version.zip"
|
||||
Invoke-WebRequest -Uri "$uri" -OutFile ".\zig-windows.zip"
|
||||
Expand-Archive -Path ".\zig-windows.zip" -DestinationPath ".\" -Force
|
||||
|
Reference in New Issue
Block a user