Skip to content

Commit ebb219b

Browse files
authored
Fixes scheduled pipeline (#1671)
* Fixes scheduled pipeline Fixes #1670 * Always set no_clippy
1 parent 37eb3a3 commit ebb219b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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() }}

eng/scripts/services_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rustup component add rustfmt clippy --toolchain ${BUILD}
1212
export RUSTFLAGS="-Dwarnings -Aunreachable-code -Aunused-assignments -Adead-code -Aclippy::new-without-default -Aclippy::unnecessary_to_owned"
1313
cargo +${BUILD} check --manifest-path services/Cargo.toml --all
1414
cargo +${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
1717
fi
1818
cargo +${BUILD} fmt --manifest-path services/Cargo.toml --all -- --check

0 commit comments

Comments
 (0)