Create rust.yml

This commit is contained in:
Alexander Neuhäuser
2025-07-18 14:51:58 +02:00
committed by GitHub
parent 8c193f5c15
commit a02c38a8e4

28
.github/workflows/rust.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: Rust
on:
push:
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run format check
run: cargo fmt --check
- name: Run lint
run: cargo clippy
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose