Skip to content

Commit b57d22a

Browse files
committed
Create github actions workflow
1 parent 7756bbd commit b57d22a

File tree

2 files changed

+33
-18
lines changed

2 files changed

+33
-18
lines changed

.github/workflows/rust.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 }}

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)