File tree Expand file tree Collapse file tree 2 files changed +33
-18
lines changed Expand file tree Collapse file tree 2 files changed +33
-18
lines changed Original file line number Diff line number Diff line change
1
+ name : Rust CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ master, github-actions ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ jobs :
10
+ build :
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ strategy :
15
+ matrix :
16
+ rust : ["1.34.2", stable, beta, nightly]
17
+ features : ["", "rayon"]
18
+ command : [test, benchmark]
19
+ steps :
20
+ - uses : actions/checkout@v2
21
+ - run : rustup default ${{ matrix.rust }}
22
+ - name : test
23
+ run : >
24
+ cargo build --verbose --no-default-features --features "$FEATURES" &&
25
+ cargo test --tests --benches --no-default-features --features "$FEATURES"
26
+ if : ${{ matrix.command == 'test' }}
27
+ env :
28
+ FEATURES : ${{ matrix.features }}
29
+ - name : benchmark
30
+ run : cargo bench --bench decoding_benchmark --no-default-features --features "$FEATURES" -- --warm-up-time 1 --measurement-time 1 --sample-size 25
31
+ if : ${{ matrix.command == 'benchmark' }}
32
+ env :
33
+ FEATURES : ${{ matrix.features }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments