What problem does it solve?
Prepare a new physical CI host so /data/miles_ci is canonical on the host's biggest disk, or as a symlink to it, before installing miles GitHub Actions runners. It is idempotent and safe to re-run; it only prepares the host filesystem layout (big-disk detection, mkdir, symlink) and does not add, remove, or talk to GitHub runners.
Core Features & Use Cases
- Detects the largest non-system mount and creates the canonical paths under that disk.
- Creates /data/miles_ci as a real directory when the biggest mount is /data, or creates real <big_disk>/miles_ci and symlinks /data/miles_ci to it otherwise.
- Ensures subdirectories /data/miles_ci/models, /data/miles_ci/datasets, /data/miles_ci/hf_cache exist and are ready for Miles CI usage.
- Prints a summary including chosen mount, target, and available disk space to verify configuration.
Quick Start
Run the setup-host.sh script to canonicalize the CI data path.