lprs/.forgejo/workflows/ci.yml
Awiteb 098d5df395
chore(CI): Check the MSRV
Because of `rust-toolchain.toml` file, now the rustc will install the
channel that in it, so we need to override the MSRV in the `cargo` command
2024-05-07 00:16:52 +03:00

25 lines
567 B
YAML

name: Rust CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
rust_ci:
name: Rust CI
runs-on: debian
steps:
- uses: actions/checkout@v4
- uses: https://codeberg.org/TheAwiteb/rust-action@v1.74
- name: Check MSRV
run: cargo +1.74 build
- 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