Skip to content

Commit

Permalink
ci: fix doc ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yfblock committed May 3, 2024
1 parent 605dab3 commit 4bc8db3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -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'
4 changes: 2 additions & 2 deletions .github/workflows/doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ 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
uses: JamesIves/github-pages-deploy-action@v4
with:
single-commit: true
branch: gh-pages
folder: target/doc
folder: target/riscv64gc-unknown-none-elf/doc
8 changes: 8 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -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",
]

0 comments on commit 4bc8db3

Please sign in to comment.