mirror of
https://codeberg.org/Toasterson/ips.git
synced 2026-04-10 21:30:41 +00:00
- Introduced `.solstice/workflow.kdl` for defining Solstice CI workflows, including Linux and illumos builds. - Added `setup-linux.sh` and `setup-illumos.sh` scripts for per-OS environment preparation. - Implemented `job.sh` as a legacy script hook for additional build steps.
23 lines
1.2 KiB
Text
23 lines
1.2 KiB
Text
workflow name="Solstice CI for solstice-ci" {
|
|
// Linux build and test on Ubuntu 22.04 runner
|
|
job id="linux-build" runs_on="ubuntu-22.04" {
|
|
setup path=".solstice/setup-linux.sh"
|
|
step name="Show toolchain" run="rustc -Vv && cargo -V"
|
|
step name="Format" run="cargo fmt --check"
|
|
step name="Clippy" run="cargo clippy --workspace --all-targets --all-features -- -D warnings"
|
|
step name="Build" run="cargo build --workspace"
|
|
step name="Test" run="cargo test --workspace --all-targets"
|
|
// Legacy script hook (runs after all other tests)
|
|
step name="Legacy job.sh" run=".solstice/job.sh"
|
|
}
|
|
|
|
// Illumos build (bhyve zone). Keep steps minimal; clippy/format may vary per toolchain.
|
|
job id="illumos-build" runs_on="illumos-latest" {
|
|
setup path=".solstice/setup-illumos.sh"
|
|
step name="Show toolchain" run="rustc -Vv && cargo -V"
|
|
step name="Build" run="cargo build --workspace"
|
|
step name="Test" run="cargo test --workspace --all-targets"
|
|
// Legacy script hook (runs after all other tests)
|
|
step name="Legacy job.sh" run=".solstice/job.sh"
|
|
}
|
|
}
|