-
Notifications
You must be signed in to change notification settings - Fork 47
58 lines (51 loc) · 1.43 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: ci
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
# Every-other month, to make sure new Rust
# releases don't break things.
- cron: '15 12 5 1,3,5,7,9,11 *'
env:
CARGO_TERM_COLOR: always
jobs:
build-and-test:
name: Build and test
strategy:
matrix:
toolchain:
- stable
- beta
- "1.65"
runs-on: ubuntu-latest
steps:
# Get a checkout and rust toolchain.
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{matrix.toolchain}}
override: true
# Build and test
- run: cargo +${{matrix.toolchain}} build
- run: cargo +${{matrix.toolchain}} test
- run: cargo +${{matrix.toolchain}} test --no-default-features line
- run: cargo +${{matrix.toolchain}} test --no-default-features --features=cr_lines line
- run: cargo +${{matrix.toolchain}} bench --no-run
run-miri:
name: Run Miri
runs-on: ubuntu-latest
steps:
# Get a checkout and rust toolchain.
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
with:
rust-version: nightly
components: miri
# Build and test
# --no-default-features to get rid of the simd feature
- run: cargo miri test --no-default-features
env:
MIRIFLAGS: "-Zmiri-strict-provenance"