on: push name: Continuous integration jobs: ci: runs-on: ubuntu-latest strategy: fail-fast: false matrix: # 1.52.1 is used in freedesktop sdk - tracks https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/blob/master/elements/components/rust.bst#L131 rust: [stable, 1.52.1] experimental: [false] # also test on beta + nightly for advance warning of breakage include: - rust: beta experimental: true - rust: nightly experimental: true continue-on-error: ${{ matrix.experimental }} steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: ${{ matrix.rust }} override: true - uses: actions-rs/cargo@v1 with: command: build - uses: actions-rs/cargo@v1 with: command: test quality: runs-on: ubuntu-latest strategy: matrix: rust: - stable steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: ${{ matrix.rust }} override: true components: rustfmt, clippy - uses: actions-rs/cargo@v1 with: command: fmt args: --all -- --check - uses: actions-rs/cargo@v1 with: command: clippy args: -- -D warnings