From: DarthBenro008 Date: Thu, 15 Jul 2021 06:45:17 +0000 (+0530) Subject: add: rust toolchain action to setup toolchain X-Git-Tag: v0.3.0~35 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/struct.SegwitCodeLengthError.html?a=commitdiff_plain;h=e4a2c078596c9f9333067528cd713e315560f956;p=bdk-cli add: rust toolchain action to setup toolchain Signed-off-by: DarthBenro008 --- diff --git a/.github/workflows/cont_integration.yml b/.github/workflows/cont_integration.yml index c51cad0..4647316 100644 --- a/.github/workflows/cont_integration.yml +++ b/.github/workflows/cont_integration.yml @@ -33,12 +33,13 @@ jobs: ~/.cargo/git target key: ${{ runner.os }}-cargo-${{ hashFiles('.cache_key') }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} - - name: Set default toolchain - run: rustup default ${{ matrix.rust }} - - name: Set profile - run: rustup set profile minimal - - name: Add clippy - run: rustup component add clippy + - name: Setup Rust Toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust }} + profile: minimal + override: true + components: rustfmt, clippy - name: Build run: cargo build --features ${{ matrix.features }} --no-default-features - name: Clippy