aboutsummaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
Diffstat (limited to 'devtools')
-rwxr-xr-xdevtools/container-build-test.sh17
1 files changed, 8 insertions, 9 deletions
diff --git a/devtools/container-build-test.sh b/devtools/container-build-test.sh
index d2fecc8..3437868 100755
--- a/devtools/container-build-test.sh
+++ b/devtools/container-build-test.sh
@@ -1,11 +1,10 @@
#!/usr/bin/env bash
-# Build, test and bench the OpenBLAS backend in a throwaway Ubuntu container to
-# catch Linux portability breakage a macOS/Accelerate build hides. Needs Apple's
-# `container` CLI running. Run from anywhere in the repo: it finds the repo root
-# via git, bind-mounts it at /work, installs the Runpod toolchain, re-execs
-# itself inside with --in-container, and runs make cpu/test/bench/bench-server-
-# utils/debug, then `make clean` (skip with KEEP=1). Override the image with
-# IMAGE=ubuntu:22.04. Exits non-zero at the first failing step.
+# Build, test and bench the OpenBLAS backend in an Ubuntu container to catch
+# Linux portability breakage a macOS/Accelerate build hides.
+# It finds the repo root via git, bind-mounts it at /work, installs the Runpod
+# toolchain, re-execs itself inside with --in-container, and runs
+# make cpu/test/bench/bench-server-utils/debug, then `make clean`.
+# Skip clean with KEEP=1. Override the image with IMAGE=ubuntu:22.04.
set -euo pipefail
IMAGE="${IMAGE:-ubuntu:24.04}"
@@ -20,13 +19,13 @@ run_in_container() {
# export map (ffwd.map) is generated at build time by devtools/gen_exports.py
# (see libffwd/Makefile), so `make cpu` fails without it.
apt-get install -y --no-install-recommends \
- build-essential ca-certificates libcjson-dev libopenblas-dev \
+ build-essential ca-certificates libyyjson-dev libopenblas-dev \
pkg-config git python3 >/dev/null
echo "==================== system / toolchain ===================="
uname -a
cc --version | sed -n '1p'
- echo "libcjson $(pkg-config --modversion libcjson 2>/dev/null || echo MISSING) :: $(pkg-config --cflags --libs libcjson 2>/dev/null)"
+ echo "libyyjson $(pkg-config --modversion libyyjson 2>/dev/null || echo MISSING) :: $(pkg-config --cflags --libs libyyjson 2>/dev/null)"
echo "openblas $(pkg-config --modversion openblas 2>/dev/null || echo MISSING) :: $(pkg-config --cflags --libs openblas 2>/dev/null)"
cd /work