Spectral/.forgejo/workflows/ci.yml
lily 22b500ef69
Some checks failed
CI / build (push) Failing after 1m38s
forgejo runners fixes format
2026-08-24 18:36:44 -04:00

35 lines
841 B
YAML

name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install build tools and Rust
run: |
apt-get update && apt-get install -y build-essential curl ca-certificates
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --component rustfmt,clippy
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: Format check
continue-on-error: true
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