From 2d92cd428cfc2b412dd9138e539b0a8cc131324a Mon Sep 17 00:00:00 2001 From: YdrMaster Date: Thu, 20 Oct 2022 11:47:37 +0800 Subject: [PATCH] build: update toolchain Signed-off-by: YdrMaster --- .github/workflows/doc-and-test.yml | 7 ++++--- rust-toolchain.toml | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/doc-and-test.yml b/.github/workflows/doc-and-test.yml index 1e6f0b1c..804727e8 100644 --- a/.github/workflows/doc-and-test.yml +++ b/.github/workflows/doc-and-test.yml @@ -4,6 +4,7 @@ on: [push] env: CARGO_TERM_COLOR: always + rust_toolchain: nightly-2022-08-05 jobs: build-doc: @@ -13,7 +14,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: nightly-2022-07-20 + toolchain: ${{ env.rust_toolchain }} components: rust-src, llvm-tools-preview target: riscv64gc-unknown-none-elf - name: Build doc @@ -32,7 +33,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: nightly-2022-07-20 + toolchain: ${{ env.rust_toolchain }} components: rust-src, llvm-tools-preview target: riscv64gc-unknown-none-elf - uses: actions-rs/install@v0.1 @@ -66,4 +67,4 @@ jobs: timeout-minutes: 10 - name: Build for k210 - run: cd os && make build BOARD=k210 \ No newline at end of file + run: cd os && make build BOARD=k210 diff --git a/rust-toolchain.toml b/rust-toolchain.toml index c56a59e0..553747b2 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,5 @@ [toolchain] profile = "minimal" -channel = "nightly-2022-07-20" +# use the nightly version of the last stable toolchain, see +channel = "nightly-2022-08-05" components = ["rust-src", "llvm-tools-preview", "rustfmt", "clippy"]