added CI
Rust lint and build / CLI (push) Failing after 1m34s
Rust lint and build / Server (push) Successful in 1m58s

This commit is contained in:
2026-06-03 10:11:59 +02:00
parent f9e6f5fca3
commit 2afcf899c7
2 changed files with 60 additions and 0 deletions
+59
View File
@@ -0,0 +1,59 @@
name: Rust lint and build
on: [push, pull_request]
jobs:
ci:
name: ${{ matrix.component }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- component: CLI
dir: .
- component: Server
dir: server
defaults:
run:
working-directory: ${{ matrix.dir }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure Cargo Cache
uses: actions/cache@v5
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt, clippy
- name: Rustfmt
run: cargo fmt --all -- --check
- name: Check
run: cargo check
- name: Clippy
run: cargo clippy -- -D warnings
- name: Test
run: cargo test
- name: Build
run: cargo build