@@ -149,8 +149,45 @@ jobs:
149149 /usr/bin/find ~/.cargo/bin ! -type d -exec strip {} \;
150150 cargo cache --autoclean
151151 shell : bash
152- integration :
152+ integration_build :
153153 needs : changelog
154+ runs-on : ubuntu-latest
155+
156+ steps :
157+ - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
158+ with :
159+ github_token : " ${{ secrets.github_token }}"
160+ - name : rust-toolchain
161+ uses : actions-rs/toolchain@v1.0.3
162+ with :
163+ toolchain : nightly
164+ target : x86_64-unknown-linux-gnu
165+ profile : minimal
166+ - name : Cache cargo dir
167+ uses : actions/cache@v1
168+ with :
169+ path : ~/.cargo
170+ key : ${{ runner.os }}-x86_64-unknown-linux-gnu
171+ - name : Checkout
172+ uses : actions/checkout@v2.0.0
173+ - name : Master Toolchain Setup
174+ run : bash setup-toolchain.sh
175+
176+ - name : Build Clippy
177+ run : cargo build --features integration
178+ - name : Upload target dir
179+ uses : actions/upload-artifact@v1
180+ with :
181+ name : target
182+ path : target
183+
184+ - name : Run cargo-cache --autoclean
185+ run : |
186+ cargo install cargo-cache --debug
187+ find ~/.cargo/bin ! -type d -exec strip {} \;
188+ cargo cache --autoclean
189+ integration :
190+ needs : integration_build
154191 strategy :
155192 fail-fast : false
156193 max-parallel : 6
@@ -194,8 +231,15 @@ jobs:
194231 - name : Master Toolchain Setup
195232 run : bash setup-toolchain.sh
196233
197- - name : Build
198- run : cargo build --features integration
234+ - name : Download target dir
235+ uses : actions/download-artifact@v1
236+ with :
237+ name : target
238+ path : target
239+ - name : Debug
240+ run : |
241+ ls target
242+ exit 1
199243 - name : Test ${{ matrix.integration }}
200244 run : cargo test --test integration --features integration
201245 env :
0 commit comments