| 1 | name: CI |
| 2 | |
| 3 | on: |
| 4 | [push, pull_request, workflow_dispatch] |
| 5 | |
| 6 | jobs: |
| 7 | test: |
| 8 | name: Rust ${{matrix.rust}} |
| 9 | runs-on: ubuntu-latest |
| 10 | strategy: |
| 11 | fail-fast: false |
| 12 | matrix: |
| 13 | rust: [1.63.0, stable, nightly] |
| 14 | steps: |
| 15 | - uses: actions/checkout@v2 |
| 16 | with: |
| 17 | submodules: recursive |
| 18 | - uses: dtolnay/rust-toolchain@master |
| 19 | with: |
| 20 | toolchain: ${{matrix.rust}} |
| 21 | - run: cargo check |
| 22 | - run: cargo test |
| 23 | - run: cd extras/data-tests && cargo run --release |
| 24 | |
| 25 | msrv: |
| 26 | name: Rust ${{matrix.rust}} |
| 27 | runs-on: ubuntu-latest |
| 28 | strategy: |
| 29 | fail-fast: false |
| 30 | matrix: |
| 31 | rust: [1.37.0] |
| 32 | steps: |
| 33 | - uses: actions/checkout@v2 |
| 34 | with: |
| 35 | submodules: recursive |
| 36 | - uses: dtolnay/rust-toolchain@master |
| 37 | with: |
| 38 | toolchain: ${{matrix.rust}} |
| 39 | - run: cargo check |
| 40 | - run: cargo build |
| 41 | |
| 42 | cross: |
| 43 | name: Rust ${{matrix.target}} |
| 44 | runs-on: ubuntu-latest |
| 45 | strategy: |
| 46 | fail-fast: false |
| 47 | matrix: |
| 48 | target: |
| 49 | - powerpc-unknown-linux-gnu |
| 50 | - powerpc64le-unknown-linux-gnu |
| 51 | - aarch64-unknown-linux-gnu |
| 52 | - armv7-unknown-linux-gnueabihf |
| 53 | steps: |
| 54 | - uses: actions/checkout@v2 |
| 55 | - uses: actions-rs/toolchain@v1 |
| 56 | with: |
| 57 | toolchain: stable |
| 58 | target: ${{matrix.target}} |
| 59 | override: true |
| 60 | - uses: actions-rs/cargo@v1 |
| 61 | with: |
| 62 | use-cross: true |
| 63 | command: check |
| 64 | args: --target ${{matrix.target}} |
| 65 | - uses: actions-rs/cargo@v1 |
| 66 | with: |
| 67 | use-cross: true |
| 68 | command: test |
| 69 | args: --target ${{matrix.target}} |