name: Rust Nightly env: CARGO_TERM_COLOR: always on: push: branches: [main, next] pull_request: branches: [main, next] jobs: check: name: ${{ matrix.name }} runs-on: ubuntu-latest strategy: matrix: include: - name: Check Formatting cmd: fmt components: rustfmt - name: Full Features cmd: nightly-full - name: All Features cmd: nightly-all - name: Clippy Default Features cmd: clippy-default components: clippy - name: Clippy All Features cmd: clippy-all components: clippy steps: - name: Checkout repo uses: actions/checkout@v2 - name: Install rust nightly toolchain uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: nightly override: true components: ${{ matrix.components }} - uses: Swatinem/rust-cache@v1 - name: Run checks uses: actions-rs/cargo@v1 with: command: run args: -p xtask --no-default-features ci ${{ matrix.cmd }}