this repo has no description
1name: Rust
2
3on:
4 push:
5 branches: ["main"]
6 pull_request:
7 branches: ["main"]
8
9env:
10 CARGO_TERM_COLOR: always
11
12jobs:
13 # Build/Test/Check everything Rust
14 build:
15 runs-on: ubuntu-latest
16
17 steps:
18 - name: Checkout
19 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20
21 - name: Install Rust
22 uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # master
23 with:
24 toolchain: stable
25 components: clippy, rustfmt
26
27 - name: Rust Cache
28 uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
29
30 - name: Build
31 run: cargo build
32
33 - name: Test
34 run: cargo test
35
36 - name: Format
37 run: cargo fmt -- --check
38
39 - name: Clippy
40 run: cargo clippy -- -D warnings