From 7b034148870201b37f50912b055c3f9257223264 Mon Sep 17 00:00:00 2001 From: Yu Chen Date: Thu, 5 Aug 2021 13:52:20 +0800 Subject: [PATCH] update CI for doc --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7765b42..8caee93 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -81,3 +81,25 @@ jobs: cargo test cd ch02-03 cargo test + + doc: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04] +# os: [ubuntu-20.04, macos-latest] + steps: + - uses: actions/checkout@v2 + with: + submodules: 'recursive' + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly-2021-07-27 + components: rust-src + - name: Build docs + run: | + cd code + cargo doc --no-deps --all-features + cd ch02-03 + cargo doc --no-deps --all-features