Menu
Public repository / 2bb786fdf7298733da7c521e94503d51e73e19a8
AkurAI-Build / .akurai.yml
Latest change 2bb786fdf7298733da7c521e94503d51e73e19a8 - OLI-176: run akurai.yml lint as first CI job; add lint smoke test by Ólafur Búi Ólafsson
version: 1
# AkurAI-Build is split into an HTTP service and a worker. The worker owns
# pipeline execution, so a protected job can replace the service without
# restarting or self-severing the worker. Production deploys consume the
# package job's prebuilt binary through deploy/service-deploy.sh, which also
# installs the packaged stdio MCP binary and shared CI helpers atomically.
# Worker-image changes require their own MCP-controlled pipeline; never mutate Compose ad hoc.
jobs:
- name: lint-config
executor: native
branches: [main]
run:
- sh scripts/test-lint-akurai-yml.sh
- sh scripts/lint-akurai-yml.sh .akurai.yml
- name: verify
needs: [lint-config]
executor: native
branches: [main]
run:
- RUSTUP_HOME=$AKURAI_HOST_HOME/.rustup CARGO_HOME=$AKURAI_HOST_HOME/.cargo PATH=$AKURAI_HOST_HOME/.cargo/bin:/usr/bin:/bin cargo fmt --all -- --check
- RUSTUP_HOME=$AKURAI_HOST_HOME/.rustup CARGO_HOME=$AKURAI_HOST_HOME/.cargo PATH=$AKURAI_HOST_HOME/.cargo/bin:/usr/bin:/bin cargo clippy --all-targets --all-features -- -D warnings
- RUSTUP_HOME=$AKURAI_HOST_HOME/.rustup CARGO_HOME=$AKURAI_HOST_HOME/.cargo PATH=$AKURAI_HOST_HOME/.cargo/bin:/usr/bin:/bin cargo test
- name: package
needs: [verify]
executor: native
branches: [main]
run: RUSTUP_HOME=$AKURAI_HOST_HOME/.rustup CARGO_HOME=$AKURAI_HOST_HOME/.cargo PATH=$AKURAI_HOST_HOME/.cargo/bin:/usr/bin:/bin cargo build --release
artifacts:
- target/release/akurai
- name: deploy-production
needs: [package]
executor: native
branches: [main]
environment: production
approval: true
run: AKURAI_HOST_BIN=$AKURAI_HOST_HOME/.local/bin sh deploy/service-deploy.sh