Files
aego/tools/ci-clean-root.sh
T
sanspie a6ebf841d0
ci-platforms / darwin amd64 smoke (push) Skipped
ci-platforms / windows amd64 smoke (push) Skipped
ci-platforms / darwin arm64 smoke (push) Skipped
ci / checks (push) Successful in 9m10s
ci / build (amd64, linux, ubuntu-24.04) (push) Successful in 12m25s
ci / release (push) Failing after 4m59s
Stage 11b8: agents draw their art (D363)
asset.pixels: pixel art as a character grid and a palette; frames of one size become an atlas with a sprite per frame and a flipbook clip; a preview image in the answer.
asset.svg: an SVG subset drawn by an in-tree rasterizer (format/svg) for tiles, UI and icons.
art module: project.aego art { palette pixelsPerUnit }, the default palette and scale for drawings; Project Health HLT009 for pixel art outside the palette.
The agent prompts say to draw instead of building sprites from rectangles.
Agent runs open the asset index shared without a warning; prefab.create on a scene open in the editor goes through the prefab service, so unsaved scenes work.
scene_run with shot names xvfb when there is no display; local make ci lists untracked files outside .gitignore.
2026-10-26 19:36:15 +03:00

38 lines
1.1 KiB
Bash
Executable File

#!/bin/sh
# Fails when the checkout root holds executables or test binaries, or, in CI, when git sees files the run left behind; locally it warns about untracked files.
set -eu
cd "$(dirname "$0")/.."
bad=""
for f in * .[!.]*; do
[ -f "$f" ] || continue
case "$f" in
*.test) bad="$bad $f" ;;
*)
if [ -x "$f" ] && ! git ls-files --error-unmatch -- "$f" >/dev/null 2>&1; then
bad="$bad $f"
fi
;;
esac
done
if [ -n "$bad" ]; then
echo "build output in the root:$bad" >&2
echo "binaries go to .cache/bin: go build -o .cache/bin/<name> ./<pkg>, go test -c -o .cache/bin/<name>.test ./<pkg>" >&2
exit 1
fi
# locally, untracked files the gitignore does not cover are listed as a warning: they are either forgotten in a commit or missing from .gitignore
if [ -z "${CI:-}" ]; then
loose=$(git ls-files --others --exclude-standard)
if [ -n "$loose" ]; then
echo "warning: untracked files outside .gitignore:" >&2
echo "$loose" | sed 's/^/ /' >&2
fi
fi
if [ -n "${CI:-}" ]; then
left=$(git status --porcelain)
if [ -n "$left" ]; then
echo "the run left changes in the checkout:" >&2
echo "$left" >&2
exit 1
fi
fi