CI and releases
CI
- Install with the same one-line installer; with no terminal it never prompts.
- I'm working on a GitHub Action
- Cache
spn's storage directory between runs; it holds the toolchain, fetched dependencies, and the build cache.
- Setting
SPN_STORAGE_DIR to a path inside the workspace makes that easy.
- Commit
spn.lock, and run spn build --locked and spn test --locked.
--locked fails for a profile or target that was never locked, so build each one CI uses once without it.
spn exits 0 on success and 1 on any failure, failed tests included.
- A private repository needs
git installed and authenticated without prompting.
Release binaries
- Build once per platform with
spn build --mode release --locked --target TRIPLE.
- One Linux runner covers Linux (
gnu and musl), Windows with MinGW, WASI, and macOS programs that link no frameworks.
- A macOS program that links frameworks needs a Mac runner, and the MSVC ABI needs a Windows runner.
- Archive the executable and the shared libraries next to it, from
build/TRIPLE/release/.
- Don't archive
store/ or .spn/.
- System libraries, and the toolchain's runtime DLLs when
runtime = "shared", aren't copied next to the executable.