12
12
- ' LICENSE-*'
13
13
- ' **.md'
14
14
15
- jobs :
16
- build :
17
- runs-on : ubuntu-latest
18
-
19
- steps :
20
- - name : Checkout
21
-
22
- - name : rust-toolchain
23
- uses :
actions-rs/[email protected]
24
- with :
25
- toolchain : nightly
26
- target : x86_64-unknown-linux-gnu
27
- profile : minimal
28
- - name : Master Toolchain Setup
29
- run : bash setup-toolchain.sh
30
- - name : Build
31
- run : cargo build --features integration
32
- - name : Upload traget/
33
-
34
- with :
35
- name : target
36
- path : target
15
+ env :
16
+ RUST_BACKTRACE : 1
37
17
38
- test :
18
+ jobs :
19
+ integration :
39
20
strategy :
40
21
fail-fast : false
41
22
matrix :
@@ -55,18 +36,37 @@ jobs:
55
36
- ' rust-lang-nursery/failure'
56
37
- ' rust-lang/log'
57
38
- ' chronotope/chrono'
58
-
59
- needs : build
60
39
runs-on : ubuntu-latest
61
40
62
41
steps :
63
- - name : Checkout
64
-
65
- - name : Download target/
66
-
67
- with :
68
- name : target
69
- - name : Test ${{ matrix.integration }}
70
- run : cargo test --test integration --features integration
71
- env :
72
- INTEGRATION : ${{ matrix.integration }}
42
+ - name : rust-toolchain
43
+ uses :
actions-rs/[email protected]
44
+ with :
45
+ toolchain : nightly
46
+ target : x86_64-unknown-linux-gnu
47
+ profile : minimal
48
+ - name : Checkout
49
+
50
+ - name : Cache cargo registry
51
+ uses : actions/cache@v1
52
+ with :
53
+ path : ~/.cargo/registry
54
+ key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
55
+ - name : Cache cargo index
56
+ uses : actions/cache@v1
57
+ with :
58
+ path : ~/.cargo/git
59
+ key : ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
60
+ - name : Cache cargo build
61
+ uses : actions/cache@v1
62
+ with :
63
+ path : target
64
+ key : ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
65
+ - name : Master Toolchain Setup
66
+ run : bash setup-toolchain.sh
67
+ - name : Build
68
+ run : cargo build --features integration
69
+ - name : Test ${{ matrix.integration }}
70
+ run : cargo test --test integration --features integration
71
+ env :
72
+ INTEGRATION : ${{ matrix.integration }}
0 commit comments