File tree 2 files changed +16
-8
lines changed
2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -173,9 +173,14 @@ jobs:
173
173
- name : Master Toolchain Setup
174
174
run : bash setup-toolchain.sh
175
175
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
179
184
uses : actions/upload-artifact@v1
180
185
with :
181
186
name : target
@@ -236,14 +241,13 @@ jobs:
236
241
with :
237
242
name : target
238
243
path : target
239
- - name : Debug
240
- run : |
241
- ls target
242
- exit 1
244
+ - name : Make Binaries Executable
245
+ run : chmod +x $CARGO_TARGET_DIR/debug/*
243
246
- name : Test ${{ matrix.integration }}
244
- run : cargo test --test integration --features integration
247
+ run : $CARGO_TARGET_DIR/debug/ integration
245
248
env :
246
249
INTEGRATION : ${{ matrix.integration }}
250
+ RUSTUP_TOOLCHAIN : master
247
251
248
252
- name : Run cargo-cache --autoclean
249
253
run : |
Original file line number Diff line number Diff line change @@ -59,6 +59,10 @@ fn integration_test() {
59
59
panic ! ( "query stack during panic in the output" ) ;
60
60
} else if stderr. contains ( "E0463" ) {
61
61
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`" ) ;
62
66
}
63
67
64
68
match output. status . code ( ) {
You can’t perform that action at this time.
0 commit comments