2024-03-17 06:18:13 +01:00
|
|
|
name: Rust CI
|
2024-03-15 04:08:33 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
2024-03-17 06:18:13 +01:00
|
|
|
rust_ci:
|
|
|
|
name: Rust CI
|
2024-03-15 04:08:33 +01:00
|
|
|
runs-on: debian
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-08-21 18:29:41 +02:00
|
|
|
- uses: https://codeberg.org/awiteb/rust-action@v1.74
|
2024-05-05 19:05:43 +02:00
|
|
|
- name: Check MSRV
|
|
|
|
run: cargo +1.74 build
|
2024-03-17 06:18:13 +01:00
|
|
|
- name: Build the source code
|
|
|
|
run: cargo build
|
|
|
|
- name: Check the code format
|
|
|
|
run: cargo fmt -- --check
|
|
|
|
- name: Run cargo-check
|
|
|
|
run: cargo check
|
|
|
|
- name: Run cargo-clippy
|
|
|
|
run: cargo clippy -- -D warnings
|