name: CI on: push: pull_request: jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy - name: Install build tools run: sudo apt-get update && sudo apt-get install -y build-essential - name: Format check run: cargo fmt --check - name: Clippy run: cargo clippy --all-targets - name: Test run: cargo test - name: Build run: cargo build --release - uses: actions/upload-artifact@v4 with: name: spectral path: target/release/KVM-hypervisor-introspector