From 96867402860b3243b218359fb3a486569b086ca8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 11 Jan 2024 22:23:28 -0800 Subject: [PATCH 1/3] update zig --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 3b801846f..6b63453e8 100644 --- a/flake.lock +++ b/flake.lock @@ -194,11 +194,11 @@ ] }, "locked": { - "lastModified": 1704759835, - "narHash": "sha256-SiJOFTJl8pLroXjv0c8HMb/pM8678KnSqpralTzsTN0=", + "lastModified": 1705040559, + "narHash": "sha256-6SjLyxWAVMfVfkz2x/3IlAJBJ0ywus6Hr9JrBbT9zCk=", "owner": "mitchellh", "repo": "zig-overlay", - "rev": "a3ae22cdf3664572047649983c3803296209d527", + "rev": "6022b38d2fd4e7504f1e8b6dcfccab9b655764a9", "type": "github" }, "original": { From 9c4bb588461890c00d5def6a55a51e2ea8f09797 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 12 Jan 2024 09:45:00 -0800 Subject: [PATCH 2/3] ci: do not cross-compile windows --- .github/workflows/test.yml | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9268ed79f..22a7564fc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,8 +10,9 @@ jobs: target: [ aarch64-linux, x86_64-linux, - x86-windows-gnu, - x86_64-windows-gnu, + # Windows has some build issues since 0.12.0-dev.2150+63de8a598 + # x86-windows-gnu, + # x86_64-windows-gnu, # We don't support cross-compiling to macOS because the macOS build # requires xcode due to the swift harness. #aarch64-macos, @@ -134,7 +135,28 @@ jobs: - name: Test Windows shell: pwsh - run: .\zigbuild.ps1 -ErrorAction SiltentlyContinue + run: .\zigbuild.ps1 -ErrorAction SilentlyContinue + + - name: Dump logs + shell: pwsh + run: Get-Content -Path ".\build.log" + + - name: Generate build script + shell: pwsh + run: | + # Generate a script so that we can swallow the errors + $scriptContent = @" + .\zig\zig.exe build 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: Build Windows + shell: pwsh + run: .\zigbuild.ps1 -ErrorAction SilentlyContinue - name: Dump logs shell: pwsh From b2cdc9401f8fd33acc432aeaafa7b8f11fc34af4 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 12 Jan 2024 10:03:14 -0800 Subject: [PATCH 3/3] ci: only output build.log once for windows build --- .github/workflows/test.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 22a7564fc..75dc9a04c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -137,10 +137,6 @@ jobs: shell: pwsh run: .\zigbuild.ps1 -ErrorAction SilentlyContinue - - name: Dump logs - shell: pwsh - run: Get-Content -Path ".\build.log" - - name: Generate build script shell: pwsh run: |