setup workflow

This commit is contained in:
yggverse 2026-03-19 18:33:10 +02:00
parent e83d69a133
commit 6de74a3a82
3 changed files with 37 additions and 0 deletions

32
.github/workflows/linux.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: Linux
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Dwarnings
jobs:
build:
# https://github.com/actions/runner-images
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Update rustup
run: rustup update
- name: Update cargo
run: cargo update
- name: Run rustfmt
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all-targets
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose