From 87d51f492e8a5f351ad768f9bd5eb563465ae779 Mon Sep 17 00:00:00 2001 From: web3Softcloud Date: Mon, 4 Dec 2023 10:53:28 +0800 Subject: [PATCH] MOD: ci, install nightly toolchain. --- .github/workflows/rust.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0545c868..3b04344f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,8 +16,14 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + profile: minimal + override: true - name: Install Rustfmt - run: rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu + run: rustup component add rustfmt --toolchain nightly - name: check run: cargo check --all-features - name: fmt-check