-
Notifications
You must be signed in to change notification settings - Fork 2
84 lines (77 loc) · 1.71 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
RUST_BACKTRACE: 1
# later
# RUSTFLAGS: -Dwarnings
CARGO_TERM_COLOR: always
rust_nightly: nightly-2022-07-23
jobs:
tests-pass:
name: pass
runs-on: ubuntu-latest
needs:
- test
- miri
- clippy
steps:
- run: exit 0
test:
strategy:
matrix:
rust:
- nightly
os:
- ubuntu-latest
- windows-latest
- macos-latest
rustflags:
- '-C target-cpu=native'
- '-C target-cpu=native -C target-feature=-avx2'
features:
- ''
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-08-22
override: true
- name: Run tests
run: cargo test ${{ matrix.features }} --release -- --nocapture
clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install Rust clippy
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-08-22
override: true
components: clippy
- uses: Swatinem/rust-cache@v1
- name: "clippy --all"
run: cargo clippy --all --tests --all-features
miri:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-08-22
- name: Run miri
run: |
cd ci
chmod +x miri.sh
./miri.sh