authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-12-07 19:27:35-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-12-08 02:01:46-05:00
log83361e4a9bfae363f86e0655b35d613f5e9efd9f
tree905c25fc5375e54ed6220beba13815912c034450
parentd69e97ae1677ca487833caf6937fa428563ed0ae

CI: test updating the wasm binary

Make sure that no commit regresses the ability to upgrade our wasm binary. Otherwise, somebody in the future is going to have a Bad Day.

4 files changed, 109 insertions(+), 0 deletions(-)

ci/aarch64-linux-debug.sh+27
......@@ -71,3 +71,30 @@ tidy --drop-empty-elements no -qe ../zig-cache/langref.html
7171
7272# Produce the experimental std lib documentation.
7373stage3-debug/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib
74
75# Ensure that updating the wasm binary from this commit will result in a viable build.
76stage3-debug/bin/zig build update-zig1
77
78rm -rf ../build-new
79mkdir ../build-new
80cd ../build-new
81
82export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache"
83export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache"
84export CC="$ZIG cc -target $TARGET -mcpu=$MCPU"
85export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
86
87cmake .. \
88 -DCMAKE_PREFIX_PATH="$PREFIX" \
89 -DCMAKE_BUILD_TYPE=Debug \
90 -DZIG_TARGET_TRIPLE="$TARGET" \
91 -DZIG_TARGET_MCPU="$MCPU" \
92 -DZIG_STATIC=ON \
93 -GNinja
94
95unset CC
96unset CXX
97
98ninja install
99
100stage3/bin/zig test ../test/behavior.zig -I../test
ci/aarch64-linux-release.sh+27
......@@ -71,3 +71,30 @@ tidy --drop-empty-elements no -qe ../zig-cache/langref.html
7171
7272# Produce the experimental std lib documentation.
7373stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib
74
75# Ensure that updating the wasm binary from this commit will result in a viable build.
76stage3-release/bin/zig build update-zig1
77
78rm -rf ../build-new
79mkdir ../build-new
80cd ../build-new
81
82export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache"
83export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache"
84export CC="$ZIG cc -target $TARGET -mcpu=$MCPU"
85export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
86
87cmake .. \
88 -DCMAKE_PREFIX_PATH="$PREFIX" \
89 -DCMAKE_BUILD_TYPE=Release \
90 -DZIG_TARGET_TRIPLE="$TARGET" \
91 -DZIG_TARGET_MCPU="$MCPU" \
92 -DZIG_STATIC=ON \
93 -GNinja
94
95unset CC
96unset CXX
97
98ninja install
99
100stage3/bin/zig test ../test/behavior.zig -I../test
ci/x86_64-linux-debug.sh+27
......@@ -70,3 +70,30 @@ tidy --drop-empty-elements no -qe ../zig-cache/langref.html
7070
7171# Produce the experimental std lib documentation.
7272stage3-debug/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib
73
74# Ensure that updating the wasm binary from this commit will result in a viable build.
75stage3-debug/bin/zig build update-zig1
76
77rm -rf ../build-new
78mkdir ../build-new
79cd ../build-new
80
81export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache"
82export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache"
83export CC="$ZIG cc -target $TARGET -mcpu=$MCPU"
84export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
85
86cmake .. \
87 -DCMAKE_PREFIX_PATH="$PREFIX" \
88 -DCMAKE_BUILD_TYPE=Debug \
89 -DZIG_TARGET_TRIPLE="$TARGET" \
90 -DZIG_TARGET_MCPU="$MCPU" \
91 -DZIG_STATIC=ON \
92 -GNinja
93
94unset CC
95unset CXX
96
97ninja install
98
99stage3/bin/zig test ../test/behavior.zig -I../test
ci/x86_64-linux-release.sh+28
......@@ -72,6 +72,7 @@ tidy --drop-empty-elements no -qe ../zig-cache/langref.html
7272# Produce the experimental std lib documentation.
7373stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib
7474
75# Ensure that stage3 and stage4 are byte-for-byte identical.
7576stage3-release/bin/zig build \
7677 --prefix stage4-release \
7778 -Denable-llvm \
......@@ -86,3 +87,30 @@ stage3-release/bin/zig build \
8687echo "If the following command fails, it means nondeterminism has been"
8788echo "introduced, making stage3 and stage4 no longer byte-for-byte identical."
8889diff stage3-release/bin/zig stage4-release/bin/zig
90
91# Ensure that updating the wasm binary from this commit will result in a viable build.
92stage3-release/bin/zig build update-zig1
93
94rm -rf ../build-new
95mkdir ../build-new
96cd ../build-new
97
98export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache"
99export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache"
100export CC="$ZIG cc -target $TARGET -mcpu=$MCPU"
101export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
102
103cmake .. \
104 -DCMAKE_PREFIX_PATH="$PREFIX" \
105 -DCMAKE_BUILD_TYPE=Release \
106 -DZIG_TARGET_TRIPLE="$TARGET" \
107 -DZIG_TARGET_MCPU="$MCPU" \
108 -DZIG_STATIC=ON \
109 -GNinja
110
111unset CC
112unset CXX
113
114ninja install
115
116stage3/bin/zig test ../test/behavior.zig -I../test