-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (30 loc) · 884 Bytes
/
ci.yml
File metadata and controls
40 lines (30 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Format, Lint, and Build
on:
push:
branches: [main]
paths-ignore: ["**.md"]
pull_request:
paths-ignore: ["**.md"]
env:
CARGO_TERM_COLOR: always
jobs:
suite:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Register Problem Matchers
uses: r7kamura/rust-problem-matchers@v1
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt,clippy
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install Cargo Make
uses: davidB/rust-cargo-make@v1
- name: Run Formatter
run: cargo +nightly fmt --all -- --check
- name: Run Clippy
run: cargo +nightly clippy --tests --examples --all-targets --all-features --workspace -- -D warnings
- name: Build
run: cargo build --release