|
| 1 | +on: |
| 2 | + push: |
| 3 | + branches: |
| 4 | + - main |
| 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 | + features: |
| 26 | + - default |
| 27 | + - runtime-dispatch-simd |
| 28 | + - generic-simd |
| 29 | + exclude: |
| 30 | + - rust: 1.32.0 |
| 31 | + features: generic-simd |
| 32 | + - rust: stable |
| 33 | + features: generic-simd |
| 34 | + - rust: beta |
| 35 | + features: generic-simd |
| 36 | + |
| 37 | + env: |
| 38 | + ARCH: ${{ matrix.arch }} |
| 39 | + runs-on: ${{ matrix.os }} |
| 40 | + steps: |
| 41 | + - uses: actions/checkout@v3 |
| 42 | + - uses: actions-rs/toolchain@v1.0.7 |
| 43 | + with: |
| 44 | + profile: minimal |
| 45 | + toolchain: ${{ matrix.rust }} |
| 46 | + override: true |
| 47 | + components: clippy, rustfmt |
| 48 | + - uses: Swatinem/rust-cache@v2 |
| 49 | + - name: Build (1.32.0, default) |
| 50 | + uses: actions-rs/cargo@v1.0.3 |
| 51 | + with: |
| 52 | + command: build |
| 53 | + args: --release |
| 54 | + if: ${{ matrix.features == 'default' && matrix.rust == '1.32.0' }} |
| 55 | + - name: Build (1.32.0, non-default) |
| 56 | + uses: actions-rs/cargo@v1.0.3 |
| 57 | + with: |
| 58 | + command: build |
| 59 | + args: --release --features ${{ matrix.features }} |
| 60 | + if: ${{ matrix.features != 'default' && matrix.rust == '1.32.0' }} |
| 61 | + - name: Test (default) |
| 62 | + uses: actions-rs/cargo@v1.0.3 |
| 63 | + with: |
| 64 | + command: test |
| 65 | + args: --release |
| 66 | + if: ${{ matrix.features == 'default' && matrix.rust != '1.32.0' }} |
| 67 | + - name: Test (non-default) |
| 68 | + uses: actions-rs/cargo@v1.0.3 |
| 69 | + with: |
| 70 | + command: test |
| 71 | + args: --release --features ${{ matrix.features }} |
| 72 | + if: ${{ matrix.features != 'default' && matrix.rust != '1.32.0' }} |
| 73 | + - name: bench |
| 74 | + uses: actions-rs/cargo@v1.0.3 |
| 75 | + with: |
| 76 | + command: bench |
| 77 | + env: |
| 78 | + COUNTS: 0,10,1000,100000,10000000 |
| 79 | + if: ${{ matrix.rust != '1.32.0' }} |
| 80 | + |
| 81 | + # Fails currently on check_count_overflow_many |
| 82 | + # |
| 83 | + # miri: |
| 84 | + # name: MIRI testing |
| 85 | + # runs-on: ubuntu-latest |
| 86 | + # steps: |
| 87 | + # - uses: actions/checkout@v2.3.4 |
| 88 | + # - uses: actions-rs/toolchain@v1.0.7 |
| 89 | + # with: |
| 90 | + # profile: minimal |
| 91 | + # toolchain: nightly |
| 92 | + # override: true |
| 93 | + # - name: Run miri |
| 94 | + # run: ./ci/miri.sh |
0 commit comments