add CI for build-doc
This commit is contained in:
parent
fb196d35a9
commit
5b49af2079
1 changed files with 25 additions and 0 deletions
25
.github/workflows/build-doc.yml
vendored
Normal file
25
.github/workflows/build-doc.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: Build Rust Doc
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-doc:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Build doc
|
||||||
|
run: |
|
||||||
|
rustup target add riscv64gc-unknown-none-elf
|
||||||
|
rustup component add llvm-tools-preview
|
||||||
|
rustup component add rust-src
|
||||||
|
cd os
|
||||||
|
cargo doc --no-deps --verbose
|
||||||
|
- name: Deploy to Github Pages
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./os/target/riscv64gc-unknown-none-elf/doc
|
||||||
|
destination_dir: ${{ github.ref_name }}
|
Loading…
Add table
Add a link
Reference in a new issue