mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 07:46:12 +03:00
create script and dump logs
This commit is contained in:
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
@ -98,9 +98,27 @@ jobs:
|
||||
Rename-Item -Path ".\$version" -NewName ".\zig"
|
||||
Write-Host "Zig installed."
|
||||
./zig/zig.exe version
|
||||
|
||||
- name: Generate build testing script
|
||||
shell: pwsh
|
||||
run: |
|
||||
# Generate a script so that we can swallow the errors
|
||||
$scriptContent = @"
|
||||
.\zig\zig.exe build test 2>&1 | Out-File -FilePath "build.log" -Append
|
||||
exit 0
|
||||
"@
|
||||
$scriptPath = "zigbuild.ps1"
|
||||
# Write the script content to a file
|
||||
$scriptContent | Set-Content -Path $scriptPath
|
||||
Write-Host "Script generated at: $scriptPath"
|
||||
|
||||
- name: Test Windows
|
||||
shell: pwsh
|
||||
run: ./zig/zig.exe build test
|
||||
run: .\zigbuild.ps1 -ErrorAction SiltentlyContinue
|
||||
|
||||
- name: Dump logs
|
||||
shell: pwsh
|
||||
run: Get-Content -Path ".\build.log"
|
||||
|
||||
test:
|
||||
strategy:
|
||||
|
Reference in New Issue
Block a user