mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
ci: update zig version regex in windows build
This commit is contained in:
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -247,7 +247,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# Get the zig version from build.zig so that it only needs to be updated
|
# Get the zig version from build.zig so that it only needs to be updated
|
||||||
$fileContent = Get-Content -Path "build.zig" -Raw
|
$fileContent = Get-Content -Path "build.zig" -Raw
|
||||||
$pattern = 'const required_zig = "(.*?)";'
|
$pattern = 'buildpkg\.requireZig\("(.*?)"\)'
|
||||||
$zigVersion = [regex]::Match($fileContent, $pattern).Groups[1].Value
|
$zigVersion = [regex]::Match($fileContent, $pattern).Groups[1].Value
|
||||||
Write-Output $version
|
Write-Output $version
|
||||||
$version = "zig-windows-x86_64-$zigVersion"
|
$version = "zig-windows-x86_64-$zigVersion"
|
||||||
|
Reference in New Issue
Block a user