diff options
author | Jack O'Connor <oconnor663@gmail.com> | 2019-12-09 21:20:04 -0500 |
---|---|---|
committer | Jack O'Connor <oconnor663@gmail.com> | 2019-12-09 21:20:04 -0500 |
commit | 98dd9cbbf1bcb1b6541792fd46d7eb56eeefcdb6 (patch) | |
tree | 488ea3b44d4d2a7b72d98954dfd3738d31bdc7df /.github | |
parent | 0c444972904d25a836cba11ac9b2561f253f9b4e (diff) |
add ci.yml
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a3098f5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: tests + +on: [push] + +jobs: + cargo tests: + 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 + + cross tests: + 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 + - run: cross test --target aarch64-unknown-linux-gnu + - run: cross test --target aarch64-unknown-linux-gnu --features=c_neon |