From 71d14f5dff57f66b410f4ccb50d2ad2499c61f91 Mon Sep 17 00:00:00 2001 From: Curt Bushko Date: Fri, 29 Sep 2023 10:41:28 -0400 Subject: [PATCH] create script and dump logs --- .github/workflows/test.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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: