File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed
Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build (Linux)
2+
3+ on :
4+ push :
5+ branches :
6+ - " main"
7+ - " github-ci-test"
8+ pull_request :
9+ branches : [ "main" ]
10+
11+ jobs :
12+ build :
13+ strategy :
14+ matrix :
15+ os : [windows-latest, ubuntu-latest, macos-latest]
16+ runs-on : ${{ matrix.os }}
17+
18+ steps :
19+ - name : Checkout sources
20+ uses : actions/checkout@v4
21+
22+ - name : Install rust toolchain
23+ uses : dtolnay/rust-toolchain@stable
24+
25+ - uses : Swatinem/rust-cache@v2
26+ with :
27+ shared-key : " build"
28+
29+ - name : Run cargo check
30+ run : cargo check
31+
32+
33+ lints :
34+ name : Lints
35+ runs-on : ubuntu-latest
36+ steps :
37+ - name : Checkout sources
38+ uses : actions/checkout@v4
39+
40+ - name : Install rust toolchain
41+ uses : dtolnay/rust-toolchain@stable
42+ with :
43+ components : rustfmt, clippy
44+
45+ - uses : Swatinem/rust-cache@v2
46+ with :
47+ shared-key : " build"
48+
49+ - name : Run cargo fmt
50+ run : cargo fmt --all --check
51+
52+ - name : Run cargo clippy
53+ run : cargo clippy --workspace --all-targets -- -D warnings
54+
55+ - name : Run cargo doc
56+ run : cargo doc --no-deps --workspace --document-private-items
57+ env :
58+ RUSTDOCFLAGS : -D warnings
You can’t perform that action at this time.
0 commit comments