Menu
Public repository / 01d9a637ece6f110ced83c7632e175243b19da3e
AkurAI-VPN / .akurai.yml
Latest change 01d9a637ece6f110ced83c7632e175243b19da3e - OLI-188: roll out lint-config CI job and sibling-dep lint by Ólafur Búi Ólafsson
version: 1
jobs:
- name: lint-config
executor: native
branches: [main]
run:
- sh scripts/test-lint-akurai-yml.sh
- sh scripts/test-lint-sibling-deps.sh
- sh scripts/lint-akurai-yml.sh .akurai.yml
- sh scripts/lint-sibling-deps.sh
- 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 --all
- 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 --target x86_64-unknown-linux-musl -p akurai-node -p akurai-relay
artifacts:
- target/x86_64-unknown-linux-musl/release/akurai-node
- target/x86_64-unknown-linux-musl/release/akurai-relay
# Deploy restarts the EC2 VPN node + relay. Because the mesh is a dependency of
# EC2<->Titan reachability, this job is approval-gated and must be promoted
# deliberately (never auto) — a bad mesh deploy can sever the path CI uses.
- name: deploy
needs: [package]
executor: native
environment: production
approval: true
branches: [main]
run: HOME=$AKURAI_HOST_HOME RUSTUP_HOME=$AKURAI_HOST_HOME/.rustup CARGO_HOME=$AKURAI_HOST_HOME/.cargo PATH=$AKURAI_HOST_HOME/.local/bin:$AKURAI_HOST_HOME/.cargo/bin:/usr/bin:/bin ./deploy.sh ec2