File tree Expand file tree Collapse file tree 2 files changed +69
-190
lines changed Expand file tree Collapse file tree 2 files changed +69
-190
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : [pull_request, push]
4
+
5
+ # Cancel a job if there's a new on on the same branch started.
6
+ # Based on https://stackoverflow.com/questions/58895283/stop-already-running-workflow-job-in-github-actions/67223051#67223051
7
+ concurrency :
8
+ group : ${{ github.ref }}
9
+ cancel-in-progress : true
10
+
11
+ env :
12
+ CARGO_INCREMENTAL : 0
13
+ RUST_BACKTRACE : 1
14
+ # Faster crates.io index checkout.
15
+ # Enable once the MSRV is >= 1.68
16
+ # CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
17
+ RUST_LOG : debug
18
+
19
+ jobs :
20
+ check_clippy :
21
+ runs-on : ubuntu-24.04
22
+ name : Clippy
23
+ steps :
24
+ - uses : actions/checkout@v4
25
+ - name : Run cargo clippy
26
+ run : cargo clippy --workspace --all-features -- -D warnings
27
+
28
+ check_fmt :
29
+ runs-on : ubuntu-24.04
30
+ name : Checking fmt
31
+ steps :
32
+ - uses : actions/checkout@v4
33
+ - name : Run cargo fmt
34
+ run : cargo fmt --all -- --check
35
+
36
+ rustdoc :
37
+ runs-on : ubuntu-24.04
38
+ name : Rustdoc
39
+ steps :
40
+ - uses : actions/checkout@v4
41
+ - name : Run rustdoc
42
+ run : cargo rustdoc --all-features -- -D warnings
43
+
44
+ build :
45
+ runs-on : ubuntu-24.04
46
+ name : Release build
47
+ steps :
48
+ - uses : actions/checkout@v4
49
+ - name : Run cargo release build
50
+ run : cargo build --release
51
+
52
+ benches :
53
+ runs-on : ubuntu-24.04
54
+ name : Run benchmarks
55
+ steps :
56
+ - uses : actions/checkout@v4
57
+ - name : Run benchmarks
58
+ run : cargo bench --all-targets
59
+
60
+ test :
61
+ runs-on : ubuntu-24.04
62
+ name : Run cargo test
63
+ strategy :
64
+ matrix :
65
+ cargo-args : ['--workspace --release', '--release -- --ignored']
66
+ steps :
67
+ - uses : actions/checkout@v4
68
+ - name : Test
69
+ run : cargo test ${{ matrix.cargo-args }}
You can’t perform that action at this time.
0 commit comments