on: [push, pull_request]
name: Continuous integration
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
env:
RUSTFLAGS: -C target-feature=+avx,+avx2
check_32bits:
name: Check (32 bits; no AVX)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
target: i686-unknown-linux-gnu
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: check
args: --target i686-unknown-linux-gnu -Zdoctest-xcompile
env:
RUSTFLAGS: -C target-feature=-avx,-avx2
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
env:
RUSTFLAGS: -C target-feature=+avx,+avx2
test_32bits:
name: Test Suite (32 bits; no AVX)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
target: i686-unknown-linux-gnu
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: test
args: --target i686-unknown-linux-gnu -Zdoctest-xcompile
env:
RUSTFLAGS: -C target-feature=-avx,-avx2
bench:
name: Benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: bench
env:
RUSTFLAGS: -C target-feature=+avx,+avx2
bench_32bits:
name: Benchmarks (32 bits; no AVX)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: i686-unknown-linux-gnu
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: bench
args: --target i686-unknown-linux-gnu
env:
RUSTFLAGS: -C target-feature=-avx,-avx2
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
env:
RUSTFLAGS: -C target-feature=+avx,+avx2
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
env:
RUSTFLAGS: -C target-feature=+avx,+avx2