authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-07-15 02:26:28+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-07-15 02:27:58+02:00
loga885e8370a7c5b77381aae11e5761fef9cf5a08c
tree9c357592e91381bba03b3aea61f0a24cbd83a714
parent148befdaa32cb42837f83733b4f299be86743d71
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

ci: partial revert of f3f2a56859f96cee6f9bc8e8fe14b99ec653abaf

While I experiment with ways to cut down run times, run on master only.

2 files changed, 0 insertions(+), 85 deletions(-)

.github/workflows/ci.yaml-9
...@@ -68,15 +68,6 @@ jobs:...@@ -68,15 +68,6 @@ jobs:
68 uses: actions/checkout@v468 uses: actions/checkout@v4
69 - name: Build and Test69 - name: Build and Test
70 run: sh ci/riscv64-linux-release.sh70 run: sh ci/riscv64-linux-release.sh
71 riscv64-linux-releasesafe:
72 if: ${{ github.event_name == 'pull_request' }}
73 timeout-minutes: 900
74 runs-on: [self-hosted, Linux, riscv64]
75 steps:
76 - name: Checkout
77 uses: actions/checkout@v4
78 - name: Build and Test
79 run: sh ci/riscv64-linux-releasesafe.sh
80 x86_64-macos-release:71 x86_64-macos-release:
81 runs-on: "macos-13"72 runs-on: "macos-13"
82 env:73 env:
ci/riscv64-linux-releasesafe.sh deleted-76
...@@ -1,76 +0,0 @@
1#!/bin/sh
2
3# Requires cmake ninja-build
4
5set -x
6set -e
7
8ARCH="$(uname -m)"
9TARGET="$ARCH-linux-musl"
10MCPU="spacemit_x60"
11CACHE_BASENAME="zig+llvm+lld+clang-riscv64-linux-musl-0.15.0-dev.929+31e46be74"
12PREFIX="$HOME/deps/$CACHE_BASENAME"
13ZIG="$PREFIX/bin/zig"
14
15export PATH="$HOME/local/bin:$PATH"
16
17# Make the `zig version` number consistent.
18# This will affect the cmake command below.
19git fetch --unshallow || true
20git fetch --tags
21
22# Override the cache directories because they won't actually help other CI runs
23# which will be testing alternate versions of zig, and ultimately would just
24# fill up space on the hard drive for no reason.
25export ZIG_GLOBAL_CACHE_DIR="$PWD/zig-global-cache"
26export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache"
27
28mkdir build-releasesafe
29cd build-releasesafe
30
31export CC="$ZIG cc -target $TARGET -mcpu=$MCPU"
32export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
33
34cmake .. \
35 -DCMAKE_INSTALL_PREFIX="stage3-releasesafe" \
36 -DCMAKE_PREFIX_PATH="$PREFIX" \
37 -DCMAKE_BUILD_TYPE=Release \
38 -DZIG_RELEASE_SAFE=ON \
39 -DZIG_TARGET_TRIPLE="$TARGET" \
40 -DZIG_TARGET_MCPU="$MCPU" \
41 -DZIG_STATIC=ON \
42 -DZIG_NO_LIB=ON \
43 -GNinja
44
45# Now cmake will use zig as the C/C++ compiler. We reset the environment variables
46# so that installation and testing do not get affected by them.
47unset CC
48unset CXX
49
50ninja install
51
52# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.
53stage3-releasesafe/bin/zig build test docs \
54 --maxrss 34359738368 \
55 -Dstatic-llvm \
56 -Dskip-non-native \
57 -Dtarget=native-native-musl \
58 --search-prefix "$PREFIX" \
59 --zig-lib-dir "$PWD/../lib"
60
61# Ensure that stage3 and stage4 are byte-for-byte identical.
62stage3-releasesafe/bin/zig build \
63 --prefix stage4-releasesafe \
64 -Denable-llvm \
65 -Dno-lib \
66 -Doptimize=ReleaseSafe \
67 -Dstrip \
68 -Dtarget=$TARGET \
69 -Dcpu=$MCPU \
70 -Duse-zig-libcxx \
71 -Dversion-string="$(stage3-releasesafe/bin/zig version)"
72
73# diff returns an error code if the files differ.
74echo "If the following command fails, it means nondeterminism has been"
75echo "introduced, making stage3 and stage4 no longer byte-for-byte identical."
76diff stage3-releasesafe/bin/zig stage4-releasesafe/bin/zig