diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f1f8a7a..e7a0b6fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,11 +25,7 @@ jobs: - name: Install rust stable toolchain if: steps.xtask-cache.outputs.cache-hit != 'true' - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true + uses: dtolnay/rust-toolchain@stable - name: Build if: steps.xtask-cache.outputs.cache-hit != 'true' @@ -47,11 +43,7 @@ jobs: uses: actions/checkout@v2 - name: Install rust nightly toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - override: true + uses: dtolnay/rust-toolchain@nightly - uses: Swatinem/rust-cache@v2 @@ -99,18 +91,9 @@ jobs: uses: actions/checkout@v2 - name: Install rust 1.64 toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: - profile: minimal - toolchain: "1.64" - - # Used to compile xtask - - name: Install rust stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true + toolchain: 1.64 - uses: Swatinem/rust-cache@v2 with: @@ -158,11 +141,7 @@ jobs: uses: actions/checkout@v2 - name: Install rust stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true + uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 @@ -205,11 +184,8 @@ jobs: uses: actions/checkout@v2 - name: Install rust nightly toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@nightly with: - profile: minimal - toolchain: nightly - override: true components: ${{ matrix.components }} - uses: Swatinem/rust-cache@v2 @@ -232,12 +208,8 @@ jobs: uses: actions/checkout@v2 - name: Install nightly rust toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - # Nightly needed for use of unstable options - toolchain: nightly - override: true + # Nightly needed for use of unstable options + uses: dtolnay/rust-toolchain@nightly - uses: Swatinem/rust-cache@v2