about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2020-11-13 11:36:07 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2020-11-29 21:07:47 +0100
commitb25a6df7754ed3de9914f9d03facdfb09728fbaf (patch)
tree1e85770f5aae1c18464dc0786896d9f3289bc9d9
parent958e2e20de762fa45f50e41a58c97548f79f8100 (diff)
downloadrust-b25a6df7754ed3de9914f9d03facdfb09728fbaf.tar.gz
rust-b25a6df7754ed3de9914f9d03facdfb09728fbaf.zip
ci: partly clean build artifacts to work around "Found multiple rlibs for crate `clippy_lints`" compiletest error
-rw-r--r--.github/workflows/clippy_bors.yml15
1 files changed, 11 insertions, 4 deletions
diff --git a/.github/workflows/clippy_bors.yml b/.github/workflows/clippy_bors.yml
index 11c1eeac1cf..a8b4925176c 100644
--- a/.github/workflows/clippy_bors.yml
+++ b/.github/workflows/clippy_bors.yml
@@ -131,11 +131,18 @@ jobs:
     - name: Build
       run: cargo build --features deny-warnings
 
-    - name: Test
-      run: cargo test --features deny-warnings  --features internal-lints
+    # compiletest would panic due to "Found multiple rlibs for crate `clippy_lints`"
+    - name: clean rlibs
+      run: rm -f ./target/debug/deps/libclippy_lints*
 
-    - name: Test clippy_lints
-      run: cargo test --features deny-warnings --features internal-lints
+    - name: Build with internal lints
+      run: cargo build --features deny-warnings,internal-lints
+
+    - name: Test with internal lints
+      run: cargo test --features deny-warnings,internal-lints
+
+    - name: Test clippy_lints with internal lints
+      run: cargo test --features deny-warnings,internal-lints
       working-directory: clippy_lints
 
     - name: Test rustc_tools_util