Files
leleka/.github/workflows/product.yml
T

49 lines
2.6 KiB
YAML

name: Product
# Builds and tests what actually ships. The other workflows cover the legacy Strata-Next static CLI (linux.yml),
# the host-buildable port crates (port.yml) and desktop-core (desktop.yml); none of them built the `leleka` deploy binary, ran the
# tests of leleka-deploy, leleka-memory, leleka-runtime-client, leleka-runtime or leleka-cuda-driver, or compiled the six release
# binaries. This job runs `scripts/check-local.sh --product`, the same command a developer runs locally:
# - scripts/check-ci-coverage.py: fails when a workspace member (or default-member) has no entry in scripts/ci-coverage.json
# - scripts/check-architecture.py: dependency direction between layers, adapter edges, no new .rs over 400 lines, source ratchets
# (architecture.json is the policy, architecture-baseline.json the debt that may only fall; self-tests in check_architecture_test.py)
# - cargo build --locked (every default-member) and the release build of leleka, leleka-api, leleka-inference, leleka-daemon,
# leleka-cli, leleka-seal-exec
# - cargo check of the CUDA-feature crates (leleka-cuda-driver --features cuda-driver, leleka-runtime)
# - cargo test of the product crates; the deploy end-to-end tests run against scripts/ci/nvidia-smi, a hermetic stand-in
# - rustfmt and Clippy -D warnings on the shipped crates; the known debt is reported (STRICT_DEBT=1 makes it fatal)
# No GPU, model weights or token is used. A green run proves the product compiles, links and passes its CPU-side tests; it does not
# prove any GPU kernel, model quality or speed.
on:
push:
branches: [main, 'claude/ci-*']
tags: ['v*']
pull_request:
workflow_dispatch:
permissions:
contents: read
env:
CARGO_TERM_COLOR: never
RUST_BACKTRACE: '1'
jobs:
product:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install build tools
run: apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential cmake pkg-config python3 curl
- name: Install pinned Rust
run: scripts/install-pinned-rustup.sh rustup toolchain install 1.99.0 --profile minimal --component rustfmt --component clippy
- name: Build, test and lint the shipped product
# STRICT_DEBT=1 would turn the reported rustfmt/Clippy debt (leleka-cuda-driver, leleka-runtime, ...) into failures.
run: scripts/check-local.sh --product
- name: Release binaries (digests; publishing stays with scripts/package-release.py)
run: |
cd target/release
sha256sum leleka leleka-api leleka-inference leleka-daemon leleka-cli leleka-seal-exec
./leleka --help | head -5