diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b3472a5a4..5bbe1da38 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: