From 26ee97e98d8978ff21ee337136c3176558801248 Mon Sep 17 00:00:00 2001 From: rm-dr <96270320+rm-dr@users.noreply.github.com> Date: Tue, 6 Jan 2026 23:05:14 -0800 Subject: [PATCH] CI --- .gitea/workflows/ci.yml | 54 +++++++++++++++++++++++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 56 insertions(+) create mode 100644 .gitea/workflows/ci.yml create mode 100644 .gitignore diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..41058e1 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,54 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + +jobs: + typos: + name: "Typos" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check typos + uses: crate-ci/typos@master + with: + config: ./typos.toml + + clippy: + name: "Clippy" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: "Install Rust" + run: | + sudo apt update + DEBIAN_FRONTEND=noninteractive \ + sudo apt install --yes rustup + rustup default 1.91.0 + + - name: Run clippy + run: cargo clippy --all-targets --all-features + + buildandtest: + name: "Build and test" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: "Install Rust" + run: | + sudo apt update + DEBIAN_FRONTEND=noninteractive \ + sudo apt install --yes rustup + rustup default 1.91.0 + + - name: Build + run: cargo build --release + + - name: Test + run: cargo test --release diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b88d6d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +target +*.ignore \ No newline at end of file