| 1 |
on: |
| 2 |
push: |
| 3 |
branches: |
| 4 |
- master |
| 5 |
pull_request: |
| 6 |
|
| 7 |
name: Continuous integration |
| 8 |
|
| 9 |
jobs: |
| 10 |
test: |
| 11 |
name: Test suite |
| 12 |
strategy: |
| 13 |
matrix: |
| 14 |
rust: |
| 15 |
- 1.32.0 |
| 16 |
- stable |
| 17 |
- beta |
| 18 |
- nightly |
| 19 |
os: |
| 20 |
- macos-latest |
| 21 |
- ubuntu-latest |
| 22 |
arch: |
| 23 |
- i686 |
| 24 |
- x86_64 |
| 25 |
- aarch64 |
| 26 |
features: |
| 27 |
- default |
| 28 |
- runtime-dispatch-simd |
| 29 |
- generic-simd |
| 30 |
exclude: |
| 31 |
- rust: 1.32.0 |
| 32 |
features: generic-simd |
| 33 |
- rust: stable |
| 34 |
features: generic-simd |
| 35 |
- rust: beta |
| 36 |
features: generic-simd |
| 37 |
|
| 38 |
env: |
| 39 |
ARCH: ${{ matrix.arch }} |
| 40 |
runs-on: ${{ matrix.os }} |
| 41 |
steps: |
| 42 |
- uses: actions/checkout@v3 |
| 43 |
- uses: actions-rs/[email protected] |
| 44 |
with: |
| 45 |
profile: minimal |
| 46 |
toolchain: ${{ matrix.rust }} |
| 47 |
override: true |
| 48 |
components: clippy, rustfmt |
| 49 |
- uses: Swatinem/rust-cache@v2 |
| 50 |
- name: Build (1.32.0, default) |
| 51 |
uses: actions-rs/[email protected] |
| 52 |
with: |
| 53 |
command: build |
| 54 |
args: --release |
| 55 |
if: ${{ matrix.features == 'default' && matrix.rust == '1.32.0' }} |
| 56 |
- name: Build (1.32.0, non-default) |
| 57 |
uses: actions-rs/[email protected] |
| 58 |
with: |
| 59 |
command: build |
| 60 |
args: --release --features ${{ matrix.features }} |
| 61 |
if: ${{ matrix.features != 'default' && matrix.rust == '1.32.0' }} |
| 62 |
- name: Test (default) |
| 63 |
uses: actions-rs/[email protected] |
| 64 |
with: |
| 65 |
command: test |
| 66 |
args: --release |
| 67 |
if: ${{ matrix.features == 'default' && matrix.rust != '1.32.0' }} |
| 68 |
- name: Test (non-default) |
| 69 |
uses: actions-rs/[email protected] |
| 70 |
with: |
| 71 |
command: test |
| 72 |
args: --release --features ${{ matrix.features }} |
| 73 |
if: ${{ matrix.features != 'default' && matrix.rust != '1.32.0' }} |
| 74 |
- name: bench |
| 75 |
uses: actions-rs/[email protected] |
| 76 |
with: |
| 77 |
command: bench |
| 78 |
env: |
| 79 |
COUNTS: 0,10,1000,100000,10000000 |
| 80 |
if: ${{ matrix.rust != '1.32.0' }} |
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|