authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-04-15 14:18:56-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-04-16 19:42:23+02:00
log29532177c1c03a20d011e794f9abb70f1bdb6d59
treeb4deb75b136ed2d98d2052635843905ff74c98be
parentebc8fe4899ba1d3eb881cbbd3f3fc5032ec58b58

CI: add coverage for fuzzer compiling

From mlugg: this commit originally also added the same coverage to the aarch64-linux-release script, but that caused the aarch64-linux-release job to time out, so that change has been omitted for now.

3 files changed, 19 insertions(+), 1 deletions(-)

ci/aarch64-macos-release.sh+4
......@@ -51,6 +51,10 @@ stage3-release/bin/zig build test docs \
5151 --search-prefix "$PREFIX" \
5252 --test-timeout 2m
5353
54# Ensure that the fuzzer at least compiles.
55stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=ReleaseSafe
56stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=Debug
57
5458# Ensure that stage3 and stage4 are byte-for-byte identical.
5559stage3-release/bin/zig build \
5660 --maxrss ${ZSF_MAX_RSS:-0} \
ci/x86_64-linux-release.sh+8-1
......@@ -51,7 +51,10 @@ unset CXX
5151
5252ninja install
5353
54# simultaneously test building self-hosted without LLVM and with 32-bit arm
54# Covers several things:
55# 1. building the compiler without LLVM
56# 2. 32-bit
57# 3. arm
5558stage3-release/bin/zig build \
5659 -Dtarget=arm-linux-musleabihf \
5760 -Dno-lib
......@@ -70,6 +73,10 @@ stage3-release/bin/zig build test docs \
7073 -Denable-superhtml \
7174 --test-timeout 12m
7275
76# Ensure that the fuzzer at least compiles.
77stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=ReleaseSafe
78stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=Debug
79
7380# Ensure that stage3 and stage4 are byte-for-byte identical.
7481stage3-release/bin/zig build \
7582 --prefix stage4-release \
ci/x86_64-windows-release.ps1+7
......@@ -54,6 +54,13 @@ stage3-release\bin\zig.exe build test docs `
5454 --test-timeout 30m
5555CheckLastExitCode
5656
57# Ensure that the fuzzer at least compiles.
58# https://codeberg.org/ziglang/zig/issues/31893
59# stage3-release\bin\zig.exe build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=ReleaseSafe
60# CheckLastExitCode
61# stage3-release\bin\zig.exe build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=Debug
62# CheckLastExitCode
63
5764# Ensure that stage3 and stage4 are byte-for-byte identical.
5865Write-Output "Build and compare stage4..."
5966stage3-release\bin\zig.exe build `