authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-02 00:54:05+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-02 09:56:37+02:00
log6def9cee009a0ce300c8625d1d11a54e4e35c3f6
tree1e45d9009e847c4fff84bf7dc953a2b369c59656
parent624fa8523a2c4158ddc9fce231181a9e8583a633
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

ci: Add stage3/4 diff to (aarch64,x86_64)-windows-release scripts.


2 files changed, 38 insertions(+), 0 deletions(-)

ci/aarch64-windows.ps1+19
...@@ -69,3 +69,22 @@ Write-Output "Main test suite..."...@@ -69,3 +69,22 @@ Write-Output "Main test suite..."
69 -Dskip-non-native `69 -Dskip-non-native `
70 -Denable-symlinks-windows70 -Denable-symlinks-windows
71CheckLastExitCode71CheckLastExitCode
72
73# Ensure that stage3 and stage4 are byte-for-byte identical.
74Write-Output "Build and compare stage4..."
75& "stage3-release\bin\zig.exe" build `
76 --prefix stage4-release `
77 -Denable-llvm `
78 -Dno-lib `
79 -Doptimize=ReleaseFast `
80 -Dstrip `
81 -Dtarget="$TARGET" `
82 -Duse-zig-libcxx `
83 -Dversion-string="$(stage3-release\bin\zig version)"
84CheckLastExitCode
85
86# Compare-Object returns an error code if the files differ.
87Write-Output "If the following command fails, it means nondeterminism has been"
88Write-Output "introduced, making stage3 and stage4 no longer byte-for-byte identical."
89Compare-Object (Get-Content stage3-release\bin\zig.exe) (Get-Content stage4-release\bin\zig.exe)
90CheckLastExitCode
ci/x86_64-windows-release.ps1+19
...@@ -70,6 +70,25 @@ Write-Output "Main test suite..."...@@ -70,6 +70,25 @@ Write-Output "Main test suite..."
70 -Denable-symlinks-windows70 -Denable-symlinks-windows
71CheckLastExitCode71CheckLastExitCode
7272
73# Ensure that stage3 and stage4 are byte-for-byte identical.
74Write-Output "Build and compare stage4..."
75& "stage3-release\bin\zig.exe" build `
76 --prefix stage4-release `
77 -Denable-llvm `
78 -Dno-lib `
79 -Doptimize=ReleaseFast `
80 -Dstrip `
81 -Dtarget="$TARGET" `
82 -Duse-zig-libcxx `
83 -Dversion-string="$(stage3-release\bin\zig version)"
84CheckLastExitCode
85
86# Compare-Object returns an error code if the files differ.
87Write-Output "If the following command fails, it means nondeterminism has been"
88Write-Output "introduced, making stage3 and stage4 no longer byte-for-byte identical."
89Compare-Object (Get-Content stage3-release\bin\zig.exe) (Get-Content stage4-release\bin\zig.exe)
90CheckLastExitCode
91
73Write-Output "Build x86_64-windows-msvc behavior tests using the C backend..."92Write-Output "Build x86_64-windows-msvc behavior tests using the C backend..."
74& "stage3-release\bin\zig.exe" test `93& "stage3-release\bin\zig.exe" test `
75 ..\test\behavior.zig `94 ..\test\behavior.zig `