From 747afb322ca786f5bd0c6f3dbc6122af6bac7d64 Mon Sep 17 00:00:00 2001 From: Joel Robotham Date: Thu, 19 Mar 2026 11:08:20 +1100 Subject: [PATCH] Add playpen hooks for cachewd Amp-Thread-ID: https://ampcode.com/threads/T-019d0345-d564-743f-ad25-f1063ade61da Co-authored-by: Amp --- .gitignore | 2 ++ .playpen/hooks/cachewd.yaml | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .playpen/hooks/cachewd.yaml diff --git a/.gitignore b/.gitignore index f66633d..9863767 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,5 @@ block-test.hcl # Binaries /cachew /cachewd +cachew-playpen-overrides.hcl +.run/playpen.cachew.run.xml diff --git a/.playpen/hooks/cachewd.yaml b/.playpen/hooks/cachewd.yaml new file mode 100644 index 0000000..3c36286 --- /dev/null +++ b/.playpen/hooks/cachewd.yaml @@ -0,0 +1,13 @@ +language: go +hooks-version: 2 +environment: BLOX +build: | + TARGET_ARCH="${PLAYPEN_ARCHITECTURE}" + echo "Building cachewd for linux/${TARGET_ARCH}" + just build linux ${TARGET_ARCH} + mkdir -p ${PLAYPEN_LOCAL_TMP_DIR}/bin + cp dist/cachewd-linux-${TARGET_ARCH} ${PLAYPEN_LOCAL_TMP_DIR}/bin/${PLAYPEN_LAUNCHABLE_NAME} + chmod +x ${PLAYPEN_LOCAL_TMP_DIR}/bin/${PLAYPEN_LAUNCHABLE_NAME} + if [ -f cachew-playpen-overrides.hcl ]; then + cp cachew-playpen-overrides.hcl ${PLAYPEN_LOCAL_TMP_DIR}/ + fi