File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -114,18 +114,18 @@ jobs:
114114 experimental :
115115 - false
116116 include :
117+ - no_clippy : false
117118 - build : nightly
118- clippy : false
119+ no_clippy : ${{ github.event_name != 'scheduled' }}
119120 experimental : true
120- - clippy : true
121121 steps :
122122 - uses : actions/checkout@v4
123123 - uses : Swatinem/rust-cache@v2
124124 with :
125125 workspaces : services
126- - run : echo "NO_CLIPPY=true" >> $GITHUB_ENV
127- if : github.event_name != 'schedule' && ! matrix.clippy
128126 - run : eng/scripts/services_tests.sh ${{ matrix.build }}
127+ env :
128+ NO_CLIPPY : ${{ matrix.no_clippy }}
129129 - name : display free disk space
130130 run : df -h /
131131 if : ${{ always() }}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ rustup component add rustfmt clippy --toolchain ${BUILD}
1212export RUSTFLAGS=" -Dwarnings -Aunreachable-code -Aunused-assignments -Adead-code -Aclippy::new-without-default -Aclippy::unnecessary_to_owned"
1313cargo +${BUILD} check --manifest-path services/Cargo.toml --all
1414cargo +${BUILD} check --manifest-path services/Cargo.toml --examples
15- if [ -z $NO_CLIPPY ]; then
15+ if [[ $NO_CLIPPY != ' true ' ] ]; then
1616 cargo +${BUILD} clippy --manifest-path services/Cargo.toml --all
1717fi
1818cargo +${BUILD} fmt --manifest-path services/Cargo.toml --all -- --check
You can’t perform that action at this time.
0 commit comments