1name: CI 2 3on: 4 push: 5 pull_request: 6 schedule: [cron: "40 1 * * *"] 7 8jobs: 9 test: 10 name: Rust ${{matrix.rust}} 11 runs-on: ubuntu-latest 12 strategy: 13 fail-fast: false 14 matrix: 15 rust: [nightly, beta, stable] 16 steps: 17 - uses: actions/checkout@v2 18 - uses: dtolnay/rust-toolchain@master 19 with: 20 toolchain: ${{matrix.rust}} 21 - run: cargo test 22 - run: cargo build --tests --features no-panic --release 23 if: matrix.rust == 'nightly' 24 25 msrv: 26 name: Rust 1.31.0 27 runs-on: ubuntu-latest 28 steps: 29 - uses: actions/checkout@v2 30 - uses: dtolnay/rust-toolchain@1.31.0 31 - run: cargo build 32 - run: cargo build --features small 33 34 miri: 35 name: Miri 36 runs-on: ubuntu-latest 37 steps: 38 - uses: actions/checkout@v2 39 - uses: dtolnay/rust-toolchain@nightly 40 with: 41 components: miri 42 - run: cargo miri setup 43 - run: cargo miri test 44