authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-07-18 14:43:33+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-09-05 07:20:28+02:00
logc36ab59a3b1f303af44e55bfa194ab922f57b11a
tree92f2faad6532768c6ce7b05b6c3b318250dd053f
parent066c7add1c94dfbf93f1f8bd123e2efb3aefb982
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

ci: bring riscv64-linux scripts in line with the rest


2 files changed, 27 insertions(+), 8 deletions(-)

ci/riscv64-linux-debug.sh+11-4
......@@ -11,8 +11,6 @@ CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.17.0-dev.203+073889523"
1111PREFIX="$HOME/deps/$CACHE_BASENAME"
1212ZIG="$PREFIX/bin/zig"
1313
14export PATH="$HOME/local/bin:$PATH"
15
1614# Override the cache directories because they won't actually help other CI runs
1715# which will be testing alternate versions of zig, and ultimately would just
1816# fill up space on the hard drive for no reason.
......@@ -46,11 +44,20 @@ ninja install
4644export ZIG_LIB_DIR="$PWD/../lib"
4745
4846# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.
49stage3-debug/bin/zig build test-modules test-c-abi \
47stage3-debug/bin/zig build test docs \
5048 --maxrss ${ZSF_MAX_RSS:-0} \
5149 -Dstatic-llvm \
5250 -Dskip-non-native \
53 -Dskip-single-threaded \
5451 -Dtarget=native-native-musl \
5552 --search-prefix "$PREFIX" \
5653 --test-timeout 4m
54
55stage3-debug/bin/zig build \
56 --prefix stage4-debug \
57 -Denable-llvm \
58 -Dno-lib \
59 -Dtarget=$TARGET \
60 -Duse-zig-libcxx \
61 -Dversion-string="$(stage3-debug/bin/zig version)"
62
63stage4-debug/bin/zig test ../test/behavior.zig
ci/riscv64-linux-release.sh+16-4
......@@ -11,8 +11,6 @@ CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.17.0-dev.203+073889523"
1111PREFIX="$HOME/deps/$CACHE_BASENAME"
1212ZIG="$PREFIX/bin/zig"
1313
14export PATH="$HOME/local/bin:$PATH"
15
1614# Override the cache directories because they won't actually help other CI runs
1715# which will be testing alternate versions of zig, and ultimately would just
1816# fill up space on the hard drive for no reason.
......@@ -46,11 +44,25 @@ ninja install
4644export ZIG_LIB_DIR="$PWD/../lib"
4745
4846# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.
49stage3-release/bin/zig build test-modules test-c-abi \
47stage3-release/bin/zig build test docs \
5048 --maxrss ${ZSF_MAX_RSS:-0} \
5149 -Dstatic-llvm \
5250 -Dskip-non-native \
53 -Dskip-single-threaded \
5451 -Dtarget=native-native-musl \
5552 --search-prefix "$PREFIX" \
5653 --test-timeout 4m
54
55# Ensure that stage3 and stage4 are byte-for-byte identical.
56stage3-release/bin/zig build \
57 --prefix stage4-release \
58 -Denable-llvm \
59 -Dno-lib \
60 -Doptimize=ReleaseFast \
61 -Dstrip \
62 -Dtarget=$TARGET \
63 -Duse-zig-libcxx \
64 -Dversion-string="$(stage3-release/bin/zig version)"
65
66echo "If the following command fails, it means nondeterminism has been"
67echo "introduced, making stage3 and stage4 no longer byte-for-byte identical."
68diff stage3-release/bin/zig stage4-release/bin/zig