| ... | ... | @@ -0,0 +1,28 @@ |
| 1 | #!/bin/sh |
| 2 | |
| 3 | set -x |
| 4 | set -e |
| 5 | |
| 6 | DEPS_LOCAL="/deps/local" |
| 7 | ZIG_PREFIX="$DRONE_WORKSPACE/_release/staging" |
| 8 | VERSION=$($ZIG_PREFIX/bin/zig version) |
| 9 | |
| 10 | "$ZIG_PREFIX/bin/zig" build \ |
| 11 | --prefix stage4 \ |
| 12 | -Dconfig_h="build-release/config.h" \ |
| 13 | -Denable-llvm \ |
| 14 | -Denable-stage1 \ |
| 15 | -Dno-lib \ |
| 16 | -Drelease \ |
| 17 | -Dstrip \ |
| 18 | -Dtarget=x86_64-linux-musl \ |
| 19 | -Duse-zig-libcxx \ |
| 20 | -Dversion-string="$VERSION" |
| 21 | |
| 22 | # diff returns an error code if the files differ. |
| 23 | echo "If the following command fails, it means nondeterminism has been" |
| 24 | echo "introduced, making stage3 and stage4 no longer byte-for-byte identical." |
| 25 | diff "$ZIG_PREFIX/bin/zig" "stage4/bin/zig" |
| 26 | |
| 27 | # Explicit exit helps show last command duration. |
| 28 | exit |