File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed
Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -173,9 +173,14 @@ jobs:
173173 - name : Master Toolchain Setup
174174 run : bash setup-toolchain.sh
175175
176- - name : Build Clippy
177- run : cargo build --features integration
178- - name : Upload target dir
176+ - name : Build Integration Test
177+ run : cargo test --test integration --features integration --no-run
178+ - name : Extract Binaries
179+ run : |
180+ DIR=$CARGO_TARGET_DIR/debug
181+ find $DIR ! -executable -o -type d ! -path $DIR | xargs rm -rf
182+ mv $DIR/integration-* $DIR/integration
183+ - name : Upload Binaries
179184 uses : actions/upload-artifact@v1
180185 with :
181186 name : target
@@ -236,14 +241,11 @@ jobs:
236241 with :
237242 name : target
238243 path : target
239- - name : Debug
240- run : |
241- ls target
242- exit 1
243244 - name : Test ${{ matrix.integration }}
244- run : cargo test --test integration --features integration
245+ run : $CARGO_TARGET_DIR/debug/ integration
245246 env :
246247 INTEGRATION : ${{ matrix.integration }}
248+ RUSTUP_TOOLCHAIN : master
247249
248250 - name : Run cargo-cache --autoclean
249251 run : |
Original file line number Diff line number Diff line change @@ -59,6 +59,10 @@ fn integration_test() {
5959 panic ! ( "query stack during panic in the output" ) ;
6060 } else if stderr. contains ( "E0463" ) {
6161 panic ! ( "error: E0463" ) ;
62+ } else if stderr. contains ( "E0514" ) {
63+ panic ! ( "incompatible crate versions" ) ;
64+ } else if stderr. contains ( "failed to run `rustc` to learn about target-specific information" ) {
65+ panic ! ( "couldn't find librustc_driver, consider setting `LD_LIBRARY_PATH`" ) ;
6266 }
6367
6468 match output. status . code ( ) {
You can’t perform that action at this time.
0 commit comments