authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-09-14 19:45:13-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-09-14 19:47:14-07:00
log8278722e5705f331ff48a00f5972505b384552a1
treeffdedfaa2f5907a1540149fbc5962a0b308591a3
parentf71d4cfdaf8e8cffe7e6737e9dd2f092bf85777c

temporarily disable most ci stuff


1 files changed, 62 insertions(+), 62 deletions(-)

ci/x86_64-linux-release.sh+62-62
...@@ -20,8 +20,8 @@ git config core.abbrev 9...@@ -20,8 +20,8 @@ git config core.abbrev 9
20git fetch --unshallow || true20git fetch --unshallow || true
21git fetch --tags21git fetch --tags
2222
23export CC="$ZIG cc -target $TARGET -mcpu=$MCPU"23#export CC="$ZIG cc -target $TARGET -mcpu=$MCPU"
24export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"24#export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
2525
26rm -rf build-release26rm -rf build-release
27mkdir build-release27mkdir build-release
...@@ -33,66 +33,66 @@ cd build-release...@@ -33,66 +33,66 @@ cd build-release
33export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache"33export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-global-cache"
34export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache"34export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-local-cache"
3535
36cmake .. \36#cmake .. \
37 -DCMAKE_INSTALL_PREFIX="stage3-release" \37# -DCMAKE_INSTALL_PREFIX="stage3-release" \
38 -DCMAKE_PREFIX_PATH="$PREFIX" \38# -DCMAKE_PREFIX_PATH="$PREFIX" \
39 -DCMAKE_BUILD_TYPE=Release \39# -DCMAKE_BUILD_TYPE=Release \
40 -DZIG_TARGET_TRIPLE="$TARGET" \40# -DZIG_TARGET_TRIPLE="$TARGET" \
41 -DZIG_TARGET_MCPU="$MCPU" \41# -DZIG_TARGET_MCPU="$MCPU" \
42 -DZIG_STATIC=ON \42# -DZIG_STATIC=ON \
43 -DZIG_NO_LIB=ON \43# -DZIG_NO_LIB=ON \
44 -GNinja44# -GNinja
4545#
46# Now cmake will use zig as the C/C++ compiler. We reset the environment variables46## Now cmake will use zig as the C/C++ compiler. We reset the environment variables
47# so that installation and testing do not get affected by them.47## so that installation and testing do not get affected by them.
48unset CC48#unset CC
49unset CXX49#unset CXX
5050#
51ninja install51#ninja install
5252#
53# TODO: move this to a build.zig step (check-fmt)53## TODO: move this to a build.zig step (check-fmt)
54echo "Looking for non-conforming code formatting..."54#echo "Looking for non-conforming code formatting..."
55stage3-release/bin/zig fmt --check .. \55#stage3-release/bin/zig fmt --check .. \
56 --exclude ../test/cases/ \56# --exclude ../test/cases/ \
57 --exclude ../build-debug \57# --exclude ../build-debug \
58 --exclude ../build-release58# --exclude ../build-release
5959#
60# simultaneously test building self-hosted without LLVM and with 32-bit arm60## simultaneously test building self-hosted without LLVM and with 32-bit arm
61stage3-release/bin/zig build \61#stage3-release/bin/zig build \
62 -Dtarget=arm-linux-musleabihf \62# -Dtarget=arm-linux-musleabihf \
63 -Dno-lib63# -Dno-lib
6464#
65stage3-release/bin/zig build test docs \65#stage3-release/bin/zig build test docs \
66 --maxrss 21000000000 \66# --maxrss 21000000000 \
67 -fqemu \67# -fqemu \
68 -fwasmtime \68# -fwasmtime \
69 -Dstatic-llvm \69# -Dstatic-llvm \
70 -Dtarget=native-native-musl \70# -Dtarget=native-native-musl \
71 --search-prefix "$PREFIX" \71# --search-prefix "$PREFIX" \
72 --zig-lib-dir "$(pwd)/../lib"72# --zig-lib-dir "$(pwd)/../lib"
7373#
74# Look for HTML errors.74## Look for HTML errors.
75# TODO: move this to a build.zig flag (-Denable-tidy)75## TODO: move this to a build.zig flag (-Denable-tidy)
76tidy --drop-empty-elements no -qe "../zig-out/doc/langref.html"76#tidy --drop-empty-elements no -qe "../zig-out/doc/langref.html"
7777#
78# Ensure that stage3 and stage4 are byte-for-byte identical.78## Ensure that stage3 and stage4 are byte-for-byte identical.
79stage3-release/bin/zig build \79#stage3-release/bin/zig build \
80 --prefix stage4-release \80# --prefix stage4-release \
81 -Denable-llvm \81# -Denable-llvm \
82 -Dno-lib \82# -Dno-lib \
83 -Doptimize=ReleaseFast \83# -Doptimize=ReleaseFast \
84 -Dstrip \84# -Dstrip \
85 -Dtarget=$TARGET \85# -Dtarget=$TARGET \
86 -Duse-zig-libcxx \86# -Duse-zig-libcxx \
87 -Dversion-string="$(stage3-release/bin/zig version)"87# -Dversion-string="$(stage3-release/bin/zig version)"
8888#
89# diff returns an error code if the files differ.89## diff returns an error code if the files differ.
90echo "If the following command fails, it means nondeterminism has been"90#echo "If the following command fails, it means nondeterminism has been"
91echo "introduced, making stage3 and stage4 no longer byte-for-byte identical."91#echo "introduced, making stage3 and stage4 no longer byte-for-byte identical."
92diff stage3-release/bin/zig stage4-release/bin/zig92#diff stage3-release/bin/zig stage4-release/bin/zig
9393#
94# Ensure that updating the wasm binary from this commit will result in a viable build.94## Ensure that updating the wasm binary from this commit will result in a viable build.
95stage3-release/bin/zig build update-zig195#stage3-release/bin/zig build update-zig1
9696
97rm -rf ../build-new97rm -rf ../build-new
98mkdir ../build-new98mkdir ../build-new