Skip to content

Commit e9d3b59

Browse files
committed
ci: partly clean build artifacts to work around "Found multiple rlibs for crate clippy_lints" compiletest error
1 parent e8e4d92 commit e9d3b59

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/clippy_bors.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,18 @@ jobs:
131131
- name: Build
132132
run: cargo build --features deny-warnings
133133

134-
- name: Test
135-
run: cargo test --features deny-warnings --features internal-lints
134+
# compiletest would panic due to "Found multiple rlibs for crate `clippy_lints`"
135+
- name: clean rlibs
136+
run: rm -f ./target/debug/deps/libclippy_lints*
136137

137-
- name: Test clippy_lints
138-
run: cargo test --features deny-warnings --features internal-lints
138+
- name: Build with internal lints
139+
run: cargo build --features deny-warnings,internal-lints
140+
141+
- name: Test with internal lints
142+
run: cargo test --features deny-warnings,internal-lints
143+
144+
- name: Test clippy_lints with internal lints
145+
run: cargo test --features deny-warnings,internal-lints
139146
working-directory: clippy_lints
140147

141148
- name: Test rustc_tools_util

0 commit comments

Comments
 (0)