CI debug
M.hearthforge-ci.toml
@@ -42,6 +42,31 @@ tag = true
default = "1.4.0"
description = "Bun release that bundles web/cm6.js. Matches the Containerfile."
# ── diagnose ─────────────────────────────────────────────────────────────────
# TEMPORARY. HearthForge clones the repo before the first step and discards
# the result, so a failed clone is invisible. This step reproduces it and
# prints why. Delete it once the clone works.
[diagnose]
run_sh = """
set +e
echo "cwd: $PWD"
echo "--- /ci/build ---"
ls -la /ci/build
echo "--- repo mount ---"
ls -la /hearthforge-repo.git
git -C /hearthforge-repo.git rev-parse --is-bare-repository
echo "--- ci vars ---"
echo "SOURCE=${CI_TRIGGER_SOURCE}"
echo "SHA=${CI_COMMIT_SHA}"
echo "BRANCH=${CI_COMMIT_BRANCH}"
echo "TAG=${CI_COMMIT_TAG}"
echo "--- manual clone ---"
git clone /hearthforge-repo.git /ci/build/project
echo "clone rc=$?"
ls -la /ci/build/project | head
exit 0
"""
# ── toolchain ────────────────────────────────────────────────────────────────
# The rust image has cargo only. The build also needs the wasm target, just,
# bun and trunk. binaryen supplies wasm-opt, so trunk does not download one.