Menu
AkurAI-Build
publicLatest change 69219af856501f06cf1fd77336bc54a34e1cca42 - Checkpoint WIP + rustfmt + AkurAI Build CI/CD pipeline by Ólafur Búi Ólafsson
version: 1
# AkurAI-Build is the CI/CD controller itself. Its production deploy
# (`./deploy.sh deploy`) rebuilds and restarts akurai-build.service via local
# cargo+systemd and MUST run outside the controller — a CI `deploy` job would
# kill the very controller executing it. So this pipeline is verify+package only;
# the controller is deployed with `./deploy.sh deploy` from a normal shell.
jobs:
- name: verify
executor: native
branches: [main]
run:
- RUSTUP_HOME=/home/olafurbui/.rustup CARGO_HOME=/home/olafurbui/.cargo PATH=/home/olafurbui/.cargo/bin:/usr/bin:/bin cargo fmt --all -- --check
- RUSTUP_HOME=/home/olafurbui/.rustup CARGO_HOME=/home/olafurbui/.cargo PATH=/home/olafurbui/.cargo/bin:/usr/bin:/bin cargo clippy --all-targets --all-features -- -D warnings
- name: package
needs: [verify]
executor: native
branches: [main]
run: RUSTUP_HOME=/home/olafurbui/.rustup CARGO_HOME=/home/olafurbui/.cargo PATH=/home/olafurbui/.cargo/bin:/usr/bin:/bin cargo build --release
artifacts:
- target/release/akurai