chore: crates.io publish metadata + CI matrix (fmt/clippy on linux, cargo test on linux+windows)

This commit is contained in:
loki5512344 2026-09-15 16:10:17 +02:00
parent 81d442b5b1
commit 8a9a384365
Signed by: boba
GPG key ID: 253067914055423B
2 changed files with 40 additions and 0 deletions

34
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,34 @@
name: CI
on:
push:
branches: [main]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
core.autocrlf: input
- run: cargo fmt --check
- run: cargo clippy --all-targets -- -D warnings
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
# core.autocrlf=input keeps the working tree LF on every OS: the
# span/byte-offset tests and the git rename assertions compare exact
# fixture bytes.
- uses: actions/checkout@v4
with:
core.autocrlf: input
- run: cargo test --locked