Skip to content

Commit 3f03130

Browse files
committed
ci: Add stage3/4 diff to Linux AArch64 release scripts.
1 parent 0f63769 commit 3f03130

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

ci/aarch64-linux-release.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,22 @@ stage3-release/bin/zig build test docs \
6464
--zig-lib-dir "$PWD/../lib" \
6565
-Denable-tidy
6666

67+
# Ensure that stage3 and stage4 are byte-for-byte identical.
68+
stage3-release/bin/zig build \
69+
--prefix stage4-release \
70+
-Denable-llvm \
71+
-Dno-lib \
72+
-Doptimize=ReleaseFast \
73+
-Dstrip \
74+
-Dtarget=$TARGET \
75+
-Duse-zig-libcxx \
76+
-Dversion-string="$(stage3-release/bin/zig version)"
77+
78+
# diff returns an error code if the files differ.
79+
echo "If the following command fails, it means nondeterminism has been"
80+
echo "introduced, making stage3 and stage4 no longer byte-for-byte identical."
81+
diff stage3-release/bin/zig stage4-release/bin/zig
82+
6783
# Ensure that updating the wasm binary from this commit will result in a viable build.
6884
stage3-release/bin/zig build update-zig1
6985

ci/aarch64-windows.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Write-Output "Build and compare stage4..."
7878
-Dno-lib `
7979
-Doptimize=ReleaseFast `
8080
-Dstrip `
81-
-Dtarget=$TARGET `
81+
-Dtarget="$TARGET" `
8282
-Duse-zig-libcxx `
8383
-Dversion-string="$(stage3-release\bin\zig version)"
8484
CheckLastExitCode

ci/x86_64-windows-release.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Write-Output "Build and compare stage4..."
7878
-Dno-lib `
7979
-Doptimize=ReleaseFast `
8080
-Dstrip `
81-
-Dtarget=$TARGET `
81+
-Dtarget="$TARGET" `
8282
-Duse-zig-libcxx `
8383
-Dversion-string="$(stage3-release\bin\zig version)"
8484
CheckLastExitCode

0 commit comments

Comments
 (0)