Cocos 209 #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust CI Pipeline | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "scripts/attestation_policy/**" | |
- ".github/workflows/rust.yaml" | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "scripts/attestation_policy/**" | |
- ".github/workflows/rust.yaml" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
rust-check: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./scripts/attestation_policy | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Check cargo | |
run: cargo check --release --all-targets | |
- name: Check formatting | |
run: cargo fmt --all -- --check | |
- name: Run linter | |
run: cargo clippy -- -D warnings | |
- name: Build for all features | |
run: cargo build --release --all-features |