| author | |
| committer | |
| log | 83361e4a9bfae363f86e0655b35d613f5e9efd9f |
| tree | 905c25fc5375e54ed6220beba13815912c034450 |
| parent | d69e97ae1677ca487833caf6937fa428563ed0ae |
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 | ... | @@ -71,3 +71,30 @@ tidy --drop-empty-elements no -qe ../zig-cache/langref.html |
| 71 | 71 | ||
| 72 | # Produce the experimental std lib documentation. | 72 | # Produce the experimental std lib documentation. |
| 73 | stage3-debug/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib | 73 | stage3-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. | ||
| 76 | stage3-debug/bin/zig build update-zig1 | ||
| 77 | |||
| 78 | rm -rf ../build-new | ||
| 79 | mkdir ../build-new | ||
| 80 | cd ../build-new | ||
| 81 | |||
| 82 | export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache" | ||
| 83 | export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache" | ||
| 84 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 85 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 86 | |||
| 87 | cmake .. \ | ||
| 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 | |||
| 95 | unset CC | ||
| 96 | unset CXX | ||
| 97 | |||
| 98 | ninja install | ||
| 99 | |||
| 100 | stage3/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 | ... | @@ -71,3 +71,30 @@ tidy --drop-empty-elements no -qe ../zig-cache/langref.html |
| 71 | 71 | ||
| 72 | # Produce the experimental std lib documentation. | 72 | # Produce the experimental std lib documentation. |
| 73 | stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib | 73 | stage3-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. | ||
| 76 | stage3-release/bin/zig build update-zig1 | ||
| 77 | |||
| 78 | rm -rf ../build-new | ||
| 79 | mkdir ../build-new | ||
| 80 | cd ../build-new | ||
| 81 | |||
| 82 | export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache" | ||
| 83 | export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache" | ||
| 84 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 85 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 86 | |||
| 87 | cmake .. \ | ||
| 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 | |||
| 95 | unset CC | ||
| 96 | unset CXX | ||
| 97 | |||
| 98 | ninja install | ||
| 99 | |||
| 100 | stage3/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 | ... | @@ -70,3 +70,30 @@ tidy --drop-empty-elements no -qe ../zig-cache/langref.html |
| 70 | 70 | ||
| 71 | # Produce the experimental std lib documentation. | 71 | # Produce the experimental std lib documentation. |
| 72 | stage3-debug/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib | 72 | stage3-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. | ||
| 75 | stage3-debug/bin/zig build update-zig1 | ||
| 76 | |||
| 77 | rm -rf ../build-new | ||
| 78 | mkdir ../build-new | ||
| 79 | cd ../build-new | ||
| 80 | |||
| 81 | export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache" | ||
| 82 | export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache" | ||
| 83 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 84 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 85 | |||
| 86 | cmake .. \ | ||
| 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 | |||
| 94 | unset CC | ||
| 95 | unset CXX | ||
| 96 | |||
| 97 | ninja install | ||
| 98 | |||
| 99 | stage3/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 | ... | @@ -72,6 +72,7 @@ tidy --drop-empty-elements no -qe ../zig-cache/langref.html |
| 72 | # Produce the experimental std lib documentation. | 72 | # Produce the experimental std lib documentation. |
| 73 | stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib | 73 | stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib |
| 74 | 74 | ||
| 75 | # Ensure that stage3 and stage4 are byte-for-byte identical. | ||
| 75 | stage3-release/bin/zig build \ | 76 | stage3-release/bin/zig build \ |
| 76 | --prefix stage4-release \ | 77 | --prefix stage4-release \ |
| 77 | -Denable-llvm \ | 78 | -Denable-llvm \ |
| ... | @@ -86,3 +87,30 @@ stage3-release/bin/zig build \ | ... | @@ -86,3 +87,30 @@ stage3-release/bin/zig build \ |
| 86 | echo "If the following command fails, it means nondeterminism has been" | 87 | echo "If the following command fails, it means nondeterminism has been" |
| 87 | echo "introduced, making stage3 and stage4 no longer byte-for-byte identical." | 88 | echo "introduced, making stage3 and stage4 no longer byte-for-byte identical." |
| 88 | diff stage3-release/bin/zig stage4-release/bin/zig | 89 | diff 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. | ||
| 92 | stage3-release/bin/zig build update-zig1 | ||
| 93 | |||
| 94 | rm -rf ../build-new | ||
| 95 | mkdir ../build-new | ||
| 96 | cd ../build-new | ||
| 97 | |||
| 98 | export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache" | ||
| 99 | export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache" | ||
| 100 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | ||
| 101 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | ||
| 102 | |||
| 103 | cmake .. \ | ||
| 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 | |||
| 111 | unset CC | ||
| 112 | unset CXX | ||
| 113 | |||
| 114 | ninja install | ||
| 115 | |||
| 116 | stage3/bin/zig test ../test/behavior.zig -I../test |