AkurAI Build
Menu

akurai-tasks

public

Latest change 204cc1effa9a2f80e57bb63d059ecd006c7d3295 - chore: production deploy runs without a manual approval gate (SDP-005, agents deliver autonomously) by operator

version: 1
jobs:
  - name: verify
    executor: native
    branches: [main]
    run:
      - rm -rf ../AkurAI-Framework; git clone --quiet --no-checkout "$AKURAI_BUILD_HOSTED/AkurAI-Framework.git" ../AkurAI-Framework; git -C ../AkurAI-Framework checkout --quiet --detach 3706c09aab8053bb4e598e28cefea2f5e42b2a24; test "$(git -C ../AkurAI-Framework rev-parse HEAD)" = 3706c09aab8053bb4e598e28cefea2f5e42b2a24
      - RUSTUP_HOME=/home/olibuijr/.rustup CARGO_HOME=/home/olibuijr/.cargo CARGO_NET_GIT_FETCH_WITH_CLI=true PATH=/home/olibuijr/.cargo/bin:/usr/bin:/bin ./scripts/check.sh
      - RUSTUP_HOME=/home/olibuijr/.rustup CARGO_HOME=/home/olibuijr/.cargo PATH=/home/olibuijr/.cargo/bin:/usr/bin:/bin cargo metadata --locked --format-version 1 | python3 -c 'import json,sys; p=json.load(sys.stdin)["packages"]; f=[x for x in p if x["name"] in {"akurai-http","akurai-json","akurai-storage"}]; assert len(f)==3 and all(x["version"]=="0.8.4" for x in f), [(x["name"],x["version"]) for x in f]'
      - RUSTUP_HOME=/home/olibuijr/.rustup CARGO_HOME=/home/olibuijr/.cargo CARGO_NET_GIT_FETCH_WITH_CLI=true PATH=/home/olibuijr/.cargo/bin:/usr/bin:/bin ./scripts/test-import.sh
      - RUSTUP_HOME=/home/olibuijr/.rustup CARGO_HOME=/home/olibuijr/.cargo CARGO_NET_GIT_FETCH_WITH_CLI=true PATH=/home/olibuijr/.cargo/bin:/usr/bin:/bin ./scripts/validate.sh --local

  - name: package
    needs: [verify]
    executor: native
    branches: [main]
    run:
      - RUSTUP_HOME=/home/olibuijr/.rustup CARGO_HOME=/home/olibuijr/.cargo CARGO_NET_GIT_FETCH_WITH_CLI=true PATH=/home/olibuijr/.cargo/bin:/usr/bin:/bin cargo build --release --target x86_64-unknown-linux-musl
      - sha256sum target/x86_64-unknown-linux-musl/release/akurai-tasks > target/x86_64-unknown-linux-musl/release/akurai-tasks.sha256
    artifacts:
      - target/x86_64-unknown-linux-musl/release/akurai-tasks
      - target/x86_64-unknown-linux-musl/release/akurai-tasks.sha256

  - name: deploy
    needs: [package]
    executor: native
    environment: production
    approval: false
    branches: [main]
    run:
      - sha256sum -c target/x86_64-unknown-linux-musl/release/akurai-tasks.sha256
      - read -r artifact_sha256 _ < target/x86_64-unknown-linux-musl/release/akurai-tasks.sha256; HOME=/home/olibuijr AKURAI_RELEASE_ARTIFACT=target/x86_64-unknown-linux-musl/release/akurai-tasks AKURAI_RELEASE_SHA256="$artifact_sha256" RUSTUP_HOME=/home/olibuijr/.rustup CARGO_HOME=/home/olibuijr/.cargo CARGO_NET_GIT_FETCH_WITH_CLI=true PATH=/home/olibuijr/.local/bin:/home/olibuijr/.cargo/bin:/usr/bin:/bin akurai-build ec2 release --mode publish --yes
      - ./scripts/validate.sh --live