build: update toolchain

Signed-off-by: YdrMaster <ydrml@hotmail.com>
This commit is contained in:
YdrMaster 2022-10-20 11:47:37 +08:00
parent dd9ef8c9c5
commit 2d92cd428c
2 changed files with 6 additions and 4 deletions

View File

@ -4,6 +4,7 @@ on: [push]
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
rust_toolchain: nightly-2022-08-05
jobs: jobs:
build-doc: build-doc:
@ -13,7 +14,7 @@ jobs:
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
toolchain: nightly-2022-07-20 toolchain: ${{ env.rust_toolchain }}
components: rust-src, llvm-tools-preview components: rust-src, llvm-tools-preview
target: riscv64gc-unknown-none-elf target: riscv64gc-unknown-none-elf
- name: Build doc - name: Build doc
@ -32,7 +33,7 @@ jobs:
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
toolchain: nightly-2022-07-20 toolchain: ${{ env.rust_toolchain }}
components: rust-src, llvm-tools-preview components: rust-src, llvm-tools-preview
target: riscv64gc-unknown-none-elf target: riscv64gc-unknown-none-elf
- uses: actions-rs/install@v0.1 - uses: actions-rs/install@v0.1
@ -66,4 +67,4 @@ jobs:
timeout-minutes: 10 timeout-minutes: 10
- name: Build for k210 - name: Build for k210
run: cd os && make build BOARD=k210 run: cd os && make build BOARD=k210

View File

@ -1,4 +1,5 @@
[toolchain] [toolchain]
profile = "minimal" profile = "minimal"
channel = "nightly-2022-07-20" # use the nightly version of the last stable toolchain, see <https://forge.rust-lang.org/>
channel = "nightly-2022-08-05"
components = ["rust-src", "llvm-tools-preview", "rustfmt", "clippy"] components = ["rust-src", "llvm-tools-preview", "rustfmt", "clippy"]