File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ permissions:
25
25
26
26
jobs :
27
27
check-website :
28
- runs-on : ubuntu-latest
28
+ runs-on : ubuntu-24.04
29
29
if : github.event_name == 'pull_request'
30
30
steps :
31
31
- name : " Checkout"
40
40
41
41
42
42
deploy-website :
43
- runs-on : ubuntu-latest
43
+ runs-on : ubuntu-24.04
44
44
if : github.event_name != 'pull_request'
45
45
steps :
46
46
- name : " Workflow triggered by push to master"
@@ -133,7 +133,7 @@ jobs:
133
133
license-guard :
134
134
# not on repo dispatch
135
135
if : github.event_name != 'repository_dispatch'
136
- runs-on : ubuntu-20 .04
136
+ runs-on : ubuntu-24 .04
137
137
steps :
138
138
- uses : actions/checkout@v4
139
139
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ defaults:
18
18
19
19
jobs :
20
20
remove-closed-prs :
21
- runs-on : ubuntu-latest
21
+ runs-on : ubuntu-24.04
22
22
steps :
23
23
- name : " Checkout"
24
24
uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ defaults:
27
27
28
28
jobs :
29
29
update-docs :
30
- runs-on : ubuntu-latest
30
+ runs-on : ubuntu-24.04
31
31
steps :
32
32
# - name: "Info about workflow (${{ github.event.client_payload.op }} ${{ github.event.client_payload.repo }}/${{ github.event.client_payload.num }})"
33
33
- name : " Info about workflow (${{ env.OP }} ${{ env.REPO }}/${{ env.NUM }})"
Original file line number Diff line number Diff line change @@ -92,7 +92,10 @@ up=".."
92
92
93
93
# unused_doc_comments,unused_attribute: caused by false positives from doc(cfg(...)) attributes.
94
94
export RUSTFLAGS=" --cfg published_docs -A unused_imports -A dead_code -A unexpected_cfgs -A unused_doc_comments -A unused_attributes"
95
- # export RUSTDOCFLAGS=...
95
+ # Both need to be supplied since `RUSTDOCFLAGS` is being propagated only to crate that is being documented (only "godot" crate in this case)
96
+ # while we need cfg value `published_docs` for codegen and other crates as well.
97
+ # All doc(cfg(...)) attributes are gated behind `published_docs` cfg – therefore it must be supplied as well.
98
+ export RUSTDOCFLAGS=$RUSTFLAGS
96
99
97
100
# shellcheck disable=SC2086
98
101
cargo +nightly doc -p $mainCrate $features --no-deps --target-dir $up /target
You can’t perform that action at this time.
0 commit comments