1
0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-09-16 19:41:44 +02:00
BLAKE3/.github/workflows/ci.yml

50 lines
1.5 KiB
YAML
Raw Normal View History

2019-12-10 03:20:04 +01:00
name: tests
on: [push]
jobs:
2019-12-10 03:25:24 +01:00
cargo_tests:
2019-12-10 03:20:04 +01:00
name: Rust ${{ matrix.rust_version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust_version: [stable, beta, nightly]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust_version }}
override: true
# Default tests.
- run: cargo test
# No-default-features tests.
- run: cargo test --no-default-features
# More features tests. Note that "c_avx512" participates in dynamic feature
# detection, so it'll be built, but it probably won't run.
- run: cargo test --features=c_avx512,rayon
# Test vectors.
- run: cargo test
working-directory: ./test_vectors
# Test benchmarks. Nightly only.
- run: cargo test --benches
if: matrix.rust_version == 'nightly'
2019-12-10 03:20:04 +01:00
2019-12-10 03:25:24 +01:00
cross_tests:
2019-12-10 03:20:04 +01:00
name: cross tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- run: cargo install cross
- run: cross test --target mips-unknown-linux-gnu
- run: cross test --target armv7-unknown-linux-gnueabihf
2019-12-10 04:13:48 +01:00
- run: cross test --target armv7-unknown-linux-gnueabihf --features=c_neon
2019-12-10 03:20:04 +01:00
- run: cross test --target aarch64-unknown-linux-gnu
- run: cross test --target aarch64-unknown-linux-gnu --features=c_neon