]> Untitled Git - bdk-cli/commitdiff
add: rust toolchain action to setup toolchain
authorDarthBenro008 <hkpdev008@gmail.com>
Thu, 15 Jul 2021 06:45:17 +0000 (12:15 +0530)
committerSteve Myers <steve@notmandatory.org>
Thu, 12 Aug 2021 12:56:31 +0000 (14:56 +0200)
Signed-off-by: DarthBenro008 <hkpdev008@gmail.com>
.github/workflows/cont_integration.yml

index c51cad035c1d9560b69fadd66a2e230b0031d748..4647316e8efc1218fc319147b6c2024fef7705aa 100644 (file)
@@ -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