From f72b469c46d9444cc27c006df971fd33629c5848 Mon Sep 17 00:00:00 2001 From: lily Date: Mon, 24 Aug 2026 18:13:10 -0400 Subject: [PATCH] forgejo runners --- .forgejo/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .forgejo/workflows/ci.yml diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..e3657e4 --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,35 @@ +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