name: Rust 1.60 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 All Features cmd: msrv-all - name: Check Client cmd: msrv-client - name: Check Ruma cmd: msrv-ruma - name: Check Owned IDs with Box cmd: msrv-owned-id-box - name: Check Owned IDs with Arc cmd: msrv-owned-id-arc steps: - name: Checkout repo uses: actions/checkout@v2 - name: Install rust 1.60 toolchain uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: "1.60" # Used to compile xtask - name: Install rust stable toolchain uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true - uses: Swatinem/rust-cache@v1 with: # A stable compiler update should automatically not reuse old caches. # Add the MSRV as a stable cache key too so bumping it also gets us a # fresh cache. sharedKey: msrv1.60 - name: Run checks uses: actions-rs/cargo@v1 with: command: run args: -p xtask --no-default-features ci ${{ matrix.cmd }}