Spectral/.forgejo/workflows/ci.yml
lily f72b469c46
Some checks failed
CI / build (push) Failing after 6s
forgejo runners
2026-08-24 18:13:10 -04:00

35 lines
695 B
YAML

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