File tree Expand file tree Collapse file tree 2 files changed +85
-55
lines changed Expand file tree Collapse file tree 2 files changed +85
-55
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches : [ master ]
4
+ pull_request :
5
+ branches : [ master ]
6
+
7
+ name : Continuous integration
8
+
9
+ env :
10
+ CARGO_TERM_COLOR : always
11
+ CARGO_INCREMENTAL : 0
12
+
13
+ jobs :
14
+ tests :
15
+ runs-on : ubuntu-latest
16
+ strategy :
17
+ matrix :
18
+ include :
19
+ - rust : 1.36.0 # MSRV
20
+ features :
21
+ - rust : stable
22
+ features : serde
23
+ - rust : stable
24
+ features : rayon
25
+ - rust : stable
26
+ features : std
27
+ - rust : beta
28
+ features :
29
+ - rust : nightly
30
+ bench : 1
31
+ - rust : nightly
32
+ features : test_low_transition_point
33
+ - rust : 1.36.0
34
+ target : thumbv6m-none-eabi
35
+ features :
36
+ - rust : stable
37
+ target : thumbv6m-none-eabi
38
+ features :
39
+
40
+ steps :
41
+ - uses : actions/checkout@v2
42
+ - uses : actions-rs/toolchain@v1
43
+ with :
44
+ profile : minimal
45
+ toolchain : ${{ matrix.rust }}
46
+ override : true
47
+ - name : Add target
48
+ run : rustup target add ${{ matrix.target }}
49
+ if : matrix.target != ''
50
+ - name : Tests (custom target)
51
+ if : matrix.target != ''
52
+ run : |
53
+ cargo build -vv --target=${{ matrix.target }}
54
+ cargo build -v -p test-nostd --target=${{ matrix.target }}
55
+ - name : Tests
56
+ if : matrix.target == ''
57
+ run : |
58
+ cargo build --verbose --features "${{ matrix.features }}"
59
+ cargo doc --verbose --features "${{ matrix.features }}"
60
+ cargo test --verbose --features "${{ matrix.features }}"
61
+ cargo test --release --verbose --features "${{ matrix.features }}"
62
+ - name : Tests (serde)
63
+ if : matrix.features == 'serde'
64
+ run : |
65
+ cargo test --verbose -p test-serde
66
+ - name : Test run benchmarks
67
+ if : matrix.bench != ''
68
+ run : cargo test -v --benches
69
+
70
+ clippy :
71
+ runs-on : ubuntu-latest
72
+ strategy :
73
+ matrix :
74
+ rust :
75
+ - beta
76
+ steps :
77
+ - uses : actions/checkout@v2
78
+ - uses : actions-rs/toolchain@v1
79
+ with :
80
+ profile : minimal
81
+ toolchain : ${{ matrix.rust }}
82
+ override : true
83
+ components : clippy
84
+ - run : cargo clippy
85
+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments