File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on : [push, pull_request]
4
+
5
+ concurrency :
6
+ group : ${{ github.workflow }}-${{ github.ref }}
7
+ cancel-in-progress : true
8
+
9
+ jobs :
10
+ build :
11
+ timeout-minutes : 10
12
+ strategy :
13
+ fail-fast : false
14
+ matrix :
15
+ rust-toolchain : [1.82.0]
16
+ runs-on : ["ubuntu-24.04", "ubuntu-24.04-arm64", "macos-15"]
17
+ runs-on : ${{ matrix.runs-on }}
18
+ env :
19
+ SCCACHE_GHA_ENABLED : " true"
20
+ RUSTC_WRAPPER : sccache
21
+ steps :
22
+ - name : Checkout sources
23
+ uses : actions/checkout@v4
24
+
25
+ - name : Install toolchain
26
+ uses : dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa
27
+ with :
28
+ toolchain : ${{ matrix.rust-toolchain }}
29
+ components : rustfmt, clippy
30
+
31
+ - name : Run sccache-cache
32
+ uses :
mozilla-actions/[email protected]
33
+
34
+ - name : Run cargo fmt
35
+ run : cargo fmt --all -- --check
36
+
37
+ - name : Run cargo test
38
+ run : cargo test --verbose --lib --bins --tests --no-fail-fast
39
+
40
+ # NOTE: Need to run doc tests separately
41
+ # SEE https://github.com/rust-lang/cargo/issues/6669
42
+ - name : Run cargo doc test
43
+ run : cargo test --verbose --doc
44
+
45
+ - name : Run cargo clippy
46
+ run : |
47
+ [[ ${{ matrix.rust-toolchain }} != 1.82.0 ]] || cargo clippy --all-targets --all -- --allow=unknown-lints --deny=warnings
You can’t perform that action at this time.
0 commit comments