Menu
AkurAI-Build
publicLatest change 834088c92ff481a8a0cc0f5825c8fb9524396e7a - Build lean Git-native AkurAI CI/CD by Ólafur Búi Ólafsson
version: 1
jobs:
- name: validate
image: rust:1.89-bookworm
network: true
cache: [.cargo, target]
run:
- export CARGO_HOME=/workspace/.cargo
- rustup component add rustfmt clippy
- cargo fmt --check
- cargo clippy --locked --all-targets -- -D warnings
- cargo test --locked --all-targets --no-fail-fast
- name: binaries
needs: [validate]
image: rust:1.89-bookworm
network: true
cache: [.cargo]
matrix:
platform: [linux/amd64, linux/arm64]
run:
- export CARGO_HOME=/workspace/.cargo
- export CARGO_TARGET_DIR="target/$(printf %s "$AKURAI_MATRIX_PLATFORM" | tr / -)"
- cargo build --release --locked
artifacts: [target/linux-*/release/akurai]