Menu
Public repository / beff27fc3a062a220cde556e7bb28da49f6d04ea
AkurAI-Drive / .akurai.yml
Latest change 7a0c78856b8c8e477d35ec2fc749195644940aa4 - OLI-188: pin Framework sibling to fmt-clean 6773bf3 by AkurAI Agent
version: 1
jobs:
- name: lint-config
executor: native
branches: [master]
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: [master]
run:
- rm -rf ../AkurAI-Framework; git clone --quiet --no-checkout $AKURAI_BUILD_DATA/hosted/AkurAI-Framework.git ../AkurAI-Framework; git -C ../AkurAI-Framework checkout --quiet --detach 6773bf3b2333914e30899245eaf1e789211fa835; test "$(git -C ../AkurAI-Framework rev-parse HEAD)" = 6773bf3b2333914e30899245eaf1e789211fa835
- rm -rf ../akurai-log; git clone --quiet --no-checkout $AKURAI_BUILD_DATA/hosted/akurai-log.git ../akurai-log; git -C ../akurai-log checkout --quiet --detach f9f251899ac492069ab132e860abd5c60ede0b46; test "$(git -C ../akurai-log rev-parse HEAD)" = f9f251899ac492069ab132e860abd5c60ede0b46
- RUSTUP_HOME=$AKURAI_HOST_HOME/.rustup CARGO_HOME=$AKURAI_HOST_HOME/.cargo PATH=$AKURAI_HOST_HOME/.cargo/bin:/usr/bin:/bin cargo fmt --manifest-path backend/Cargo.toml --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 --manifest-path backend/Cargo.toml --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 --manifest-path backend/Cargo.toml --all
- name: package
needs: [verify]
executor: native
branches: [master]
run:
- RUSTUP_HOME=$AKURAI_HOST_HOME/.rustup CARGO_HOME=$AKURAI_HOST_HOME/.cargo PATH=$AKURAI_HOST_HOME/.cargo/bin:/usr/bin:/bin cargo build --manifest-path backend/Cargo.toml --release --target x86_64-unknown-linux-musl
- tar -czf site-frontend.tar.gz -C site/frontend .
artifacts:
- backend/target/x86_64-unknown-linux-musl/release/akurai-drive-api
- site-frontend.tar.gz
- name: deploy
needs: [package]
executor: native
environment: production
approval: true
branches: [master]
run:
- ./backend/deploy.sh --binary backend/target/x86_64-unknown-linux-musl/release/akurai-drive-api
- DRIVE_SITE_SOURCE=site-frontend.tar.gz DRIVE_RELEASE="${AKURAI_COMMIT_SHA:-build}" ./site/deploy.sh