| 1 | name: CI |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - main |
| 7 | pull_request: |
| 8 | |
| 9 | jobs: |
| 10 | rust: |
| 11 | strategy: |
| 12 | matrix: |
| 13 | toolchain: [stable, beta, nightly] |
| 14 | name: Rust |
| 15 | runs-on: ubuntu-20.04 |
| 16 | steps: |
| 17 | - uses: actions/checkout@v3 |
| 18 | - uses: actions-rs/toolchain@v1 |
| 19 | with: |
| 20 | profile: minimal |
| 21 | override: true |
| 22 | toolchain: ${{ matrix.toolchain }} |
| 23 | - uses: actions-rs/cargo@v1 |
| 24 | name: Build |
| 25 | with: |
| 26 | command: build |
| 27 | - uses: actions-rs/cargo@v1 |
| 28 | name: Test |
| 29 | with: |
| 30 | command: test |
| 31 |