Skip to content

Commit 37eb3a3

Browse files
authored
No nightly clippy except weekly (#1670)
Also removes dependabot.yml since defaults should be sufficient. This was causing problems with the Azure/azure-sdk-for-rust-pr repo.
1 parent ae61e0e commit 37eb3a3

File tree

3 files changed

+10
-19
lines changed

3 files changed

+10
-19
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Build and Test
33
on:
44
pull_request:
55
push:
6+
schedule:
7+
- cron: "0 0 * * 0"
68

79
env:
810
RUSTFLAGS: -Dwarnings
@@ -18,7 +20,7 @@ jobs:
1820
- uses: actions/checkout@v4
1921
- id: get_msrv
2022
run: |
21-
MSRV=$(cargo metadata --format-version=1 --no-deps | jq '.packages[] | select(.name == "azure_core").rust_version' -r)
23+
MSRV=$(cargo metadata --format-version=1 --no-deps | jq '.packages[] | select(.name == "azure_core").rust_version' -r)
2224
echo setting msrv to ${MSRV}
2325
echo msrv=${MSRV} >> "$GITHUB_OUTPUT"
2426
@@ -113,12 +115,16 @@ jobs:
113115
- false
114116
include:
115117
- build: nightly
118+
clippy: false
116119
experimental: true
120+
- clippy: true
117121
steps:
118122
- uses: actions/checkout@v4
119123
- uses: Swatinem/rust-cache@v2
120124
with:
121125
workspaces: services
126+
- run: echo "NO_CLIPPY=true" >> $GITHUB_ENV
127+
if: github.event_name != 'schedule' && ! matrix.clippy
122128
- run: eng/scripts/services_tests.sh ${{ matrix.build }}
123129
- name: display free disk space
124130
run: df -h /

eng/scripts/services_tests.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +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-
cargo +${BUILD} clippy --manifest-path services/Cargo.toml --all
15+
if [ -z $NO_CLIPPY ]; then
16+
cargo +${BUILD} clippy --manifest-path services/Cargo.toml --all
17+
fi
1618
cargo +${BUILD} fmt --manifest-path services/Cargo.toml --all -- --check

0 commit comments

Comments
 (0)