Files
roro9stack/scripts/ci.sh
T
twislaandClaude Opus 5.5 db7e6ccc18
CI / build (push) Successful in 8m5s
CI: jobs run in a container, PlatformIO directly in it, the toolchains in a volume
The runner now gives each job a container. The workflow asks for
python:3.12-slim, installs git, a compiler and PlatformIO, and mounts the
roro9stack-pio volume as the cache; the scripts skip their own docker run
when RORO_NO_DOCKER says they're in the build container already. A tag
from before the framework was rebuilt gets the stock framework libraries
back before it builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EhqxQ49eCju4CzKYNjZzwT
2026-10-06 12:39:37 +02:00

8 lines
297 B
Bash
Executable File

#!/usr/bin/env bash
# Local CI: run host unit tests, then build the firmware.
set -euo pipefail
source "$(dirname "$0")/_docker.sh"
DOCKER_EXTRA=()
run_in_container bash -c 'git config --global --add safe.directory "$PWD" && pio test -e native && pio run -e cardputer-adv -e cardputer-adv-debug'