From 8424b44decc3e448413800ccc4d1d25db58738d9 Mon Sep 17 00:00:00 2001 From: Mollusk Date: Mon, 29 Jun 2026 15:43:35 -0400 Subject: [PATCH] ci: add Gitea Actions workflow (self-hosted host-mode runner) CI runs on a self-hosted host-mode gitea-runner on the desktop (label `arch`), so the cheap gitbutter VPS only queues jobs while all compile/test compute runs locally. Pipeline on push-to-main / PR / manual dispatch: cargo fmt --check, clippy --all-targets -D warnings, cargo test --all-targets + doc tests, cargo deny check, cargo audit. Co-Authored-By: Claude Opus 4.8 --- .gitea/workflows/ci.yml | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..02e17f7 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,42 @@ +name: CI + +# Runs on the self-hosted host-mode runner on the desktop (label `arch`). The +# gitbutter VPS only queues the job; all compile/test compute happens locally. +on: + push: + branches: [main] + pull_request: + workflow_dispatch: + +jobs: + check: + runs-on: arch + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Toolchain versions + run: | + rustc --version + cargo --version + cargo clippy --version + cargo deny --version + cargo audit --version + + - name: Format check + run: cargo fmt --all -- --check + + - name: Clippy (all targets, warnings as errors) + run: cargo clippy --all-targets -- -D warnings + + - name: Tests + run: cargo test --all-targets + + - name: Doc tests + run: cargo test --doc + + - name: cargo-deny (advisories, bans, licenses, sources) + run: cargo deny check + + - name: cargo-audit + run: cargo audit