Run doctests in CI/CD.
This commit is contained in:
parent
188cc043f7
commit
1bf024dacf
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -308,6 +308,12 @@ jobs:
|
||||
run: |
|
||||
cargo test -vv --all-targets --target=${{ matrix.target }} ${{ matrix.cargo_options }} ${{ matrix.features }} ${{ matrix.mode }}
|
||||
|
||||
# --all-targets doesn't run doctests: https://github.com/rust-lang/cargo/issues/6669
|
||||
# Run doctests only on x86_64 to avoid cross-compilation hassles with `--no-run`.
|
||||
- if: ${{ contains(matrix.target, 'x86_64') }}
|
||||
run: |
|
||||
cargo test -vv --doc --target=${{ matrix.target }} ${{ matrix.cargo_options }} ${{ matrix.features }} ${{ matrix.mode }}
|
||||
|
||||
# Check that all the needed symbol renaming was done.
|
||||
# TODO: Do this check on Windows too.
|
||||
# TODO: Check iOS too.
|
||||
|
Loading…
x
Reference in New Issue
Block a user