| ... | @@ -15,29 +15,31 @@ pip3 install s3cmd | ... | @@ -15,29 +15,31 @@ pip3 install s3cmd |
| 15 | # This will affect the cmake command below. | 15 | # This will affect the cmake command below. |
| 16 | git config core.abbrev 9 | 16 | git config core.abbrev 9 |
| 17 | | 17 | |
| | 18 | # This patch is a workaround for |
| | 19 | # https://github.com/ziglang/zig/issues/4822 |
| | 20 | patch <<'END_PATCH' |
| | 21 | --- CMakeLists.txt |
| | 22 | +++ CMakeLists.txt |
| | 23 | @@ -430,7 +430,6 @@ set(BUILD_LIBSTAGE2_ARGS "build-lib" |
| | 24 | --cache on |
| | 25 | --output-dir "${CMAKE_BINARY_DIR}" |
| | 26 | ${LIBSTAGE2_RELEASE_ARG} |
| | 27 | - --bundle-compiler-rt |
| | 28 | -fPIC |
| | 29 | -lc |
| | 30 | ${LIBSTAGE2_WINDOWS_ARGS} |
| | 31 | END_PATCH |
| | 32 | |
| 18 | mkdir build | 33 | mkdir build |
| 19 | cd build | 34 | cd build |
| 20 | cmake .. -DCMAKE_BUILD_TYPE=Release "-DCMAKE_INSTALL_PREFIX=$DISTDIR" -DZIG_STATIC=ON -DCMAKE_PREFIX_PATH=/deps/local | 35 | cmake .. -DCMAKE_BUILD_TYPE=Release "-DCMAKE_INSTALL_PREFIX=$DISTDIR" -DZIG_STATIC=ON -DCMAKE_PREFIX_PATH=/deps/local |
| 21 | | 36 | |
| 22 | make -j$(nproc) install | 37 | make -j$(nproc) install |
| 23 | ./zig build test-fmt test-behavior test-std test-compiler-rt -Dskip-release -Dskip-non-native | 38 | ./zig build test -Dskip-release -Dskip-non-native |
| 24 | # TODO test-compare-output is hitting https://github.com/ziglang/zig/issues/3526 | | |
| 25 | ./zig build test-standalone test-stack-traces | | |
| 26 | # TODO test-cli is hitting https://github.com/ziglang/zig/issues/3526 | | |
| 27 | ./zig build test-asm-link test-runtime-safety | | |
| 28 | # TODO test-translate-c is hitting https://github.com/ziglang/zig/issues/3526 | | |
| 29 | # TODO disabled until we are shipping self-hosted | | |
| 30 | #./zig build test-gen-h | | |
| 31 | # TODO test-compile-errors is hitting https://github.com/ziglang/zig/issues/3526 | | |
| 32 | # TODO building docs is hitting https://github.com/ziglang/zig/issues/3526 | | |
| 33 | | | |
| 34 | # TODO full test suite: | | |
| 35 | #./zig build test | | |
| 36 | | 39 | |
| 37 | if [ -z "$DRONE_PULL_REQUEST" ]; then | 40 | if [ -z "$DRONE_PULL_REQUEST" ]; then |
| 38 | mv ../LICENSE "$DISTDIR/" | 41 | mv ../LICENSE "$DISTDIR/" |
| 39 | # TODO uncomment when the docs are generated | 42 | mv ../zig-cache/langref.html "$DISTDIR/" |
| 40 | # mv ../zig-cache/langref.html "$DISTDIR/" | | |
| 41 | mv "$DISTDIR/bin/zig" "$DISTDIR/" | 43 | mv "$DISTDIR/bin/zig" "$DISTDIR/" |
| 42 | rmdir "$DISTDIR/bin" | 44 | rmdir "$DISTDIR/bin" |
| 43 | | 45 | |