From 7c73371d64c5199bc5d930c903f6c04463d866fb Mon Sep 17 00:00:00 2001 From: reverse Date: Wed, 29 Jul 2026 18:48:41 +0000 Subject: [PATCH] Add Forgejo CI (build, test, fmt, clippy) Co-Authored-By: Claude Opus 4.8 --- .forgejo/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..8f28122 --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,24 @@ +name: ci +on: + push: + pull_request: + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: system deps + run: apt-get update && apt-get install -y --no-install-recommends pkg-config libssl-dev curl ca-certificates build-essential + - name: install rust + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal -c clippy -c rustfmt + echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + - name: test + run: cargo test --verbose + - name: format + continue-on-error: true + run: cargo fmt --check + - name: clippy + continue-on-error: true + run: cargo clippy --all-targets -- -D warnings