authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-26 19:42:28-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-26 19:42:28-04:00
log463b90b977ba4817f6cf90a85e8609092f53dfd2
tree4d30850f3544691418d4d28fb268fff87700325c
parentab20b351ce7fbac15e9ccd7918283f313ae2a327
signaturelock-open Commit is signed but in an unrecognized format.

ci: fix aarch64 linux

This patch adds a workaround for #4822, disables one failing langref example, and enables the rest of the test suite. You win some, you lose some.

2 files changed, 21 insertions(+), 15 deletions(-)

ci/drone/linux_script+17-15
......@@ -15,29 +15,31 @@ pip3 install s3cmd
1515# This will affect the cmake command below.
1616git config core.abbrev 9
1717
18# This patch is a workaround for
19# https://github.com/ziglang/zig/issues/4822
20patch <<'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}
31END_PATCH
32
1833mkdir build
1934cd build
2035cmake .. -DCMAKE_BUILD_TYPE=Release "-DCMAKE_INSTALL_PREFIX=$DISTDIR" -DZIG_STATIC=ON -DCMAKE_PREFIX_PATH=/deps/local
2136
2237make -j$(nproc) install
23./zig build test-fmt test-behavior test-std test-compiler-rt -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
38./zig build test -Dskip-release -Dskip-non-native
3639
3740if [ -z "$DRONE_PULL_REQUEST" ]; then
3841 mv ../LICENSE "$DISTDIR/"
39 # TODO uncomment when the docs are generated
40 # mv ../zig-cache/langref.html "$DISTDIR/"
42 mv ../zig-cache/langref.html "$DISTDIR/"
4143 mv "$DISTDIR/bin/zig" "$DISTDIR/"
4244 rmdir "$DISTDIR/bin"
4345
doc/langref.html.in+4
......@@ -4984,6 +4984,10 @@ test "implicit unsigned integer to signed integer" {
49844984}
49854985
49864986test "float widening" {
4987 // Note: there is an open issue preventing this from working on aarch64:
4988 // https://github.com/ziglang/zig/issues/3282
4989 if (std.Target.current.cpu.arch == .aarch64) return error.SkipZigTest;
4990
49874991 var a: f16 = 12.34;
49884992 var b: f32 = a;
49894993 var c: f64 = b;