Files
tuliprox/.github/workflows/ci.yaml
T
euzuandGitHub 38813bb672 Feature/makefile ci and log with local time (#582)
- Add Makefile to simplify installing required tools
- Add CONTRIBUTING.md welcome new contributors
- Add fmt, lint, test tasks to makefile and update CONTRIBUTING.md
- Add CI workflow
-  Log with local date
2026-02-14 12:12:59 +01:00

50 lines
1.1 KiB
YAML

name: CI
on:
push:
branches: [develop]
pull_request:
branches: [develop]
# Avoid running the same CI multiple times for the same PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# Job 1: Check code style (very fast)
style:
name: Format & Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nightly Rust
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
- name: Check Formatting
# This now works with cargo +nightly fmt
run: make fmt-check
- name: Lint with Clippy
run: make lint
# Job 2: Build and Test (takes longer)
test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Stable Rust
uses: dtolnay/rust-toolchain@stable
- name: Rust Cache
# This magic step saves compiled dependencies between runs
uses: Swatinem/rust-cache@v2
- name: Run Tests
run: make test