This commit is contained in:
2026-01-06 23:05:14 -08:00
parent 1e0a9309ac
commit 26ee97e98d
2 changed files with 56 additions and 0 deletions

54
.gitea/workflows/ci.yml Normal file
View File

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

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
target
*.ignore