zat.dev/zds
atproto pds · mirror of https://tangled.org/zat.dev/zds
zds 0.25.1 Latest 2 packages, all images
0
0
#!/usr/bin/env sh
# CI's checks. The x86_64 ReleaseSafe build that tools/fly-deploy.sh ships
# (into .ci-release) is the longest, so it starts first and compiles while the
# unit tests and smoke run. The nixery engine runs each step in a fresh
# container, so the overlap has to happen inside one step. The ARMv6 check and
# the property campaigns are their own workflows.
set -eu
cd "$(dirname "$0")/.."
zig=${ZIG:-zig}
logs=$(mktemp -d)
trap 'rm -rf "$logs"' EXIT
started=$(date +%s)
section() { printf '\n── %s (%ss)\n' "$1" "$(($(date +%s) - started))"; }
tools/ci-cores.sh performance "$zig" build deploy-build -Dtarget=x86_64-linux-gnu -Doptimize=ReleaseSafe -Dweb-garden=true \
-Dweb-drawings=src/internal/web/icons/generated.zig -p .ci-release --summary all \
>"$logs/release" 2>&1 &
release=$!
join() {
status=0
wait "$2" || status=$?
cat "$logs/$1"
if [ "$status" != 0 ]; then
echo "$1 failed" >&2
exit "$status"
fi
}
section "unit tests"
uv run tools/test-smoke-runner.py
uv run tools/test-ci-public-ca.py
"$zig" build test --summary all
section "public and permissioned endpoint smoke, with SDK interop"
(cd tools/space-sdk && pnpm install --frozen-lockfile)
PATH="$(dirname "$zig"):$PATH" ZDS_SPACE_SDK_DIR="$PWD/tools/space-sdk" tools/smoke-all.sh
section "x86_64 release build"
join release "$release"
section "done"