File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed
Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change 1313 RUST_BACKTRACE : " 1"
1414
1515jobs :
16- cargo-doc :
17- name : Cargo Doc
18- runs-on : ubuntu-latest-16-cores
19- steps :
20- - name : Checkout
21- uses : actions/checkout@v4
22- with :
23- fetch-depth : 2 # Need at least 2 commits for diff
24-
25- - name : Check for doc comment changes
26- id : check-docs
27- run : |
28- if git diff HEAD^ HEAD -U0 | grep -q '^\+\s*///\|^\+\s*//!\|^\+\s*#\[doc'; then
29- echo "has_doc_changes=true" >> $GITHUB_OUTPUT
30- else
31- echo "has_doc_changes=false" >> $GITHUB_OUTPUT
32- fi
33-
34- - uses : Swatinem/rust-cache@v2
35- if : steps.check-docs.outputs.has_doc_changes == 'true'
36- with :
37- cache-all-crates : true
38-
39- - name : Run cargo doc
40- if : steps.check-docs.outputs.has_doc_changes == 'true'
41- run : cargo doc --no-deps
42-
4316 clippy :
4417 name : Clippy Check
4518 runs-on : ubuntu-latest-16-cores
You can’t perform that action at this time.
0 commit comments