From 4f356db37cfd40f78bc77ba5b709cf0e6336422a Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Mon, 23 May 2022 15:35:18 -0400 Subject: [PATCH] Use actions-rs/toolchain to set up toolchain --- .github/workflows/ci.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0086179..b5a7958 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,8 +21,12 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup Rust - run: rustup default ${{ matrix.rust_version }} + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust_version }} + override: true + profile: minimal - name: Build run: cargo build --locked --verbose @@ -37,8 +41,12 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup Rust - run: rustup default stable + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + components: rustfmt, clippy - name: Rustfmt run: cargo fmt -- --check