Add Forgejo CI (build, test, fmt, clippy)
All checks were successful
ci / check (push) Successful in 1m9s

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Jean Chevronnet 2026-07-29 18:48:41 +00:00
parent 0094465ca9
commit 7c73371d64
No known key found for this signature in database
GPG key ID: 439666D63A9477E4

24
.forgejo/workflows/ci.yml Normal file
View file

@ -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