From 4bc8db3f2779e2b075d4cfd5c3ba517e6ebf6671 Mon Sep 17 00:00:00 2001 From: yufeng <321353225@qq.com> Date: Sat, 4 May 2024 03:18:05 +0800 Subject: [PATCH] ci: fix doc ci --- .cargo/config.toml | 2 +- .github/workflows/doc.yaml | 4 ++-- rust-toolchain.toml | 8 ++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 rust-toolchain.toml diff --git a/.cargo/config.toml b/.cargo/config.toml index b615045..bac0add 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,6 +1,6 @@ # Just used for rust-analyzer. [build] -# target = "riscv64gc-unknown-none-elf" +target = "riscv64gc-unknown-none-elf" # target = 'aarch64-unknown-none-softfloat' # target = 'x86_64-unknown-none' # target = 'loongarch64-unknown-none' diff --git a/.github/workflows/doc.yaml b/.github/workflows/doc.yaml index ae859a8..02f4d64 100644 --- a/.github/workflows/doc.yaml +++ b/.github/workflows/doc.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@nightly - name: generate doc run: cargo doc --no-deps --all-features - name: Deploy to Github Pages @@ -20,4 +20,4 @@ jobs: with: single-commit: true branch: gh-pages - folder: target/doc \ No newline at end of file + folder: target/riscv64gc-unknown-none-elf/doc diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..0c59087 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,8 @@ +[toolchain] +profile = "minimal" +# channel = "nightly-2023-03-29" +channel = "nightly-2023-12-01" +components = ["rust-src", "rustfmt", "clippy"] +targets = [ + "riscv64imac-unknown-none-elf", +]