File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1717 steps :
1818 - name : Checkout
1919 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+ with :
21+ fetch-depth : 1
2022
2123 - name : Install `yamllint`
2224 run : pip install --requirement=.github/workflows/requirements.txt
3840
3941 - name : just check
4042 run : just check
43+ env :
44+ # Disable incremental compilation to avoid overhead.
45+ CARGO_INCREMENTAL : " 0"
46+ # Disable full debug symbol generation to speed up CI build
47+ # "1" means line tables only, which is useful for panic tracebacks.
48+ CARGO_PROFILE_DEV_DEBUG : " 1"
4149
4250 - name : upload docs
4351 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
Original file line number Diff line number Diff line change @@ -82,9 +82,18 @@ impl CommandExt for Command {
8282 let Ok ( k) = k. into_string ( ) else {
8383 continue ;
8484 } ;
85- if k. starts_with ( "CARGO" ) || k. starts_with ( "RUST" ) {
85+
86+ // Generally we do NOT want to forward rustc and cargo arguments set for this build
87+ // script. However some of them are used in CI to speed up compilation and reduce disk
88+ // space usage. So we hard-code these here.
89+ if ( k. starts_with ( "CARGO" ) || k. starts_with ( "RUST" ) )
90+ && ![ "CARGO_PROFILE_DEV_DEBUG" , "CARGO_INCREMENTAL" ]
91+ . into_iter ( )
92+ . any ( |s| s == k)
93+ {
8694 continue ;
8795 }
96+
8897 cmd = cmd. env ( k, v) ;
8998 }
9099
You can’t perform that action at this time.
0 commit comments