Run doctests in CI/CD.

This commit is contained in:
Brian Smith 2021-07-20 10:36:57 -07:00
parent 188cc043f7
commit 1bf024dacf

View File

@ -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.