Skip to content

Commit

Permalink
CI bug fixes - Part III (#1625)
Browse files Browse the repository at this point in the history
* Add docs check to the PR sanity checks
* Disable the docs publishing for PRs
  • Loading branch information
gpmayorga authored Nov 24, 2023
1 parent 3e1aa4b commit 2b28ef3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Rustdoc
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}
cancel-in-progress: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sanity-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
target: [test-general, test-integration,
lint-fmt, lint-clippy, cargo-build] # ,lint-taplo]
lint-fmt, lint-clippy, cargo-build, docs-build] # ,lint-taplo]
steps:
- name: Check out code
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #3.5.2
Expand All @@ -31,7 +31,7 @@ jobs:
run: ./ci/run-check.sh
env:
TARGET: ${{ matrix.target }}
RUSTC_WRAPPER: "sccache"
RUSTC_WRAPPER: "sccache"

benchmark-check:
name: bench-check-${{ matrix.runtime }}
Expand All @@ -55,4 +55,4 @@ jobs:
env:
TARGET: benchmark-check
RUNTIME: ${{ matrix.runtime }}
RUSTC_WRAPPER: "sccache"
RUSTC_WRAPPER: "sccache"
3 changes: 3 additions & 0 deletions ci/run-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ case $TARGET in
;;
benchmark-check)
./scripts/check_benchmarks.sh $RUNTIME
;;
docs-build)
RUSTDOCFLAGS="-D warnings" cargo doc --all --no-deps
esac

0 comments on commit 2b28ef3

Please sign in to comment.