Skip to content

Commit

Permalink
Merge #309
Browse files Browse the repository at this point in the history
309: build docs as part of CI r=japaric a=japaric



Co-authored-by: Jorge Aparicio <[email protected]>
  • Loading branch information
bors[bot] and japaric authored Aug 10, 2022
2 parents 5e93d0f + eaebcdc commit 06bd308
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,58 @@ jobs:
command: check
args: --target=${{ matrix.target }} --no-default-features --features=${{ matrix.features }}

doc:
name: doc
runs-on: ubuntu-latest
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- thumbv7m-none-eabi
features:
- ""
- "cas"
- "serde"
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Cache cargo dependencies
uses: actions/cache@v2
with:
path: |
- ~/.cargo/bin/
- ~/.cargo/registry/index/
- ~/.cargo/registry/cache/
- ~/.cargo/git/db/
key: ${{ runner.OS }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.OS }}-cargo-${{ hashFiles('**/Cargo.lock') }}
${{ runner.OS }}-cargo-
- name: Cache build output dependencies
uses: actions/cache@v2
with:
path: target
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
${{ runner.OS }}-build-
- name: Install stable Rust with target (${{ matrix.target }})
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
override: true

- name: cargo doc
uses: actions-rs/cargo@v1
with:
use-cross: false
command: doc
args: --target=${{ matrix.target }} --no-default-features --features=${{ matrix.features }}

# Run cpass tests
testcpass:
name: testcpass
Expand Down Expand Up @@ -299,6 +351,7 @@ jobs:
needs:
- style
- check
- doc
- testcpass
- testtsan
- testcfail
Expand Down

0 comments on commit 06bd308

Please sign in to comment.