Added workflow

This commit is contained in:
KD
2025-03-30 14:44:23 -04:00
parent 6f15817c9f
commit 6a90c770fc
+31
View File
@@ -0,0 +1,31 @@
name: Rust CI
on:
push:
branches: [ "master" ] # Changed from main to master
pull_request:
branches: [ "master" ] # Changed from main to master
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install Rust 1.85.0
uses: actions-rs/toolchain@v1
with:
toolchain: 1.85.0
components: clippy, rustfmt
override: true
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Run rustfmt
run: cargo fmt --all -- --check