AkurAI Build
Menu

AkurAI-Build

public

Latest change 9e7d102408551d0be9697ea986a66e2e7361ca5b - Isolate build caches and bootstrap pinned CI tools by Ólafur Búi Ólafsson

version: 1
jobs:
  - name: validate
    image: rust:1.89-bookworm
    network: true
    cache: [.cargo, .rustup, target]
    run:
      - export CARGO_HOME=/workspace/.cargo RUSTUP_HOME=/workspace/.rustup RUSTUP_TOOLCHAIN=1.89.0 RUSTUP_SKIP_UPDATE_CHECK=1
      - rustup toolchain install 1.89.0 --profile minimal --component rustfmt --component 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, .rustup]
    matrix:
      platform: [linux/amd64, linux/arm64]
    run:
      - export CARGO_HOME=/workspace/.cargo RUSTUP_HOME=/workspace/.rustup RUSTUP_TOOLCHAIN=1.89.0 RUSTUP_SKIP_UPDATE_CHECK=1
      - rustup toolchain install 1.89.0 --profile minimal
      - export CARGO_TARGET_DIR="target/$(printf %s "$AKURAI_MATRIX_PLATFORM" | tr / -)"
      - cargo build --release --locked
    artifacts: [target/linux-*/release/akurai]