| 1 | on: |
| 2 | push: |
| 3 | branches: |
| 4 | - main |
| 5 | pull_request: |
| 6 | |
| 7 | name: tests |
| 8 | |
| 9 | jobs: |
| 10 | tests: |
| 11 | name: tests |
| 12 | runs-on: ubuntu-latest |
| 13 | strategy: |
| 14 | matrix: |
| 15 | features: |
| 16 | - |
| 17 | - --features unstable-512-bit-simd |
| 18 | - --features serde |
| 19 | steps: |
| 20 | - name: Checkout sources |
| 21 | uses: actions/checkout@v2 |
| 22 | |
| 23 | - name: Install nightly toolchain |
| 24 | uses: actions-rs/toolchain@v1 |
| 25 | with: |
| 26 | profile: minimal |
| 27 | toolchain: nightly |
| 28 | override: true |
| 29 | |
| 30 | - name: Run cargo test |
| 31 | uses: actions-rs/cargo@v1 |
| 32 | with: |
| 33 | command: test |
| 34 | args: ${{ matrix.features }} |