create script and dump logs

This commit is contained in:
Curt Bushko
2023-09-29 10:41:28 -04:00
parent 54bbcd875a
commit 71d14f5dff

View File

@ -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: