diff --git a/.github/workflows/doc-and-test.yml b/.github/workflows/doc-and-test.yml index 1c4199e8..d1fcebb5 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"]