From 26c1006b40c00ec4a7814e2b93de436509b176e4 Mon Sep 17 00:00:00 2001 From: manbo Date: Sun, 21 Dec 2025 15:35:53 +0000 Subject: [PATCH] Add very simple CI pipeline --- .gitea/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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..7733d87 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI + +on: + - push + - pull_request + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Rust + uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + components: clippy,rustfmt + cache: true + + - name: Cache cargo registry & build + uses: swatinem/rust-cache@v1 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + + - name: Build + run: cargo build --workspace --all-features --locked + + - name: Run tests + run: cargo test --workspace --all-features --locked + + - name: Run clippy + run: cargo clippy --all-targets --all-features -- -D warnings + + - name: Check formatting + run: cargo fmt --all -- --check