-
Notifications
You must be signed in to change notification settings - Fork 27
95 lines (91 loc) · 2.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
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
85
86
87
88
89
90
91
92
93
94
95
on:
push:
branches:
- master
pull_request:
name: Continuous integration
jobs:
test:
name: Test suite
strategy:
matrix:
rust:
- 1.32.0
- stable
- beta
- nightly
os:
- macos-latest
- ubuntu-latest
arch:
- i686
- x86_64
- aarch64
features:
- default
- runtime-dispatch-simd
- generic-simd
exclude:
- rust: 1.32.0
features: generic-simd
- rust: stable
features: generic-simd
- rust: beta
features: generic-simd
env:
ARCH: ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- name: Build (1.32.0, default)
uses: actions-rs/cargo@v1.0.3
with:
command: build
args: --release
if: ${{ matrix.features == 'default' && matrix.rust == '1.32.0' }}
- name: Build (1.32.0, non-default)
uses: actions-rs/cargo@v1.0.3
with:
command: build
args: --release --features ${{ matrix.features }}
if: ${{ matrix.features != 'default' && matrix.rust == '1.32.0' }}
- name: Test (default)
uses: actions-rs/cargo@v1.0.3
with:
command: test
args: --release
if: ${{ matrix.features == 'default' && matrix.rust != '1.32.0' }}
- name: Test (non-default)
uses: actions-rs/cargo@v1.0.3
with:
command: test
args: --release --features ${{ matrix.features }}
if: ${{ matrix.features != 'default' && matrix.rust != '1.32.0' }}
- name: bench
uses: actions-rs/cargo@v1.0.3
with:
command: bench
env:
COUNTS: 0,10,1000,100000,10000000
if: ${{ matrix.rust != '1.32.0' }}
# Fails currently on check_count_overflow_many
#
# miri:
# name: MIRI testing
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2.3.4
# - uses: actions-rs/toolchain@v1.0.7
# with:
# profile: minimal
# toolchain: nightly
# override: true
# - name: Run miri
# run: ./ci/miri.sh