File tree Expand file tree Collapse file tree 10 files changed +259
-195
lines changed Expand file tree Collapse file tree 10 files changed +259
-195
lines changed Original file line number Diff line number Diff line change 10
10
CARGO_TERM_COLOR : always
11
11
12
12
jobs :
13
- cargo- test :
13
+ test-linux :
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- name : Checkout source
17
17
uses : actions/checkout@v2
18
18
19
- - name : Get main commit hash
20
- id : main_commit
21
- run : echo "::set-output name=hash::$(git rev-parse origin/main)"
19
+ - uses : Swatinem/rust-cache@v1
22
20
23
- - name : Cache target, rustup and cargo registry
24
- id : cache-target
25
- uses : actions/cache@v2
21
+ - name : cargo test
22
+ uses : actions-rs/cargo@v1
23
+ with :
24
+ command : test
25
+ args : --workspace
26
+
27
+ test-windows :
28
+ runs-on : windows-latest
29
+ steps :
30
+ - name : Checkout source
31
+ uses : actions/checkout@v2
32
+
33
+ - uses : Swatinem/rust-cache@v1
34
+
35
+ - name : cargo test
36
+ uses : actions-rs/cargo@v1
26
37
with :
27
- path : |
28
- ~/.rustup
29
- ~/.cargo/registry
30
- ~/.cargo/bin
31
- target
32
- key : main-${{ steps.main_commit.outputs.hash }}
38
+ command : test
39
+ args : --workspace
40
+
41
+ test-macos :
42
+ runs-on : macos-latest
43
+ steps :
44
+ - name : Checkout source
45
+ uses : actions/checkout@v2
46
+
47
+ - uses : Swatinem/rust-cache@v1
33
48
34
49
- name : cargo test
35
50
uses : actions-rs/cargo@v1
Original file line number Diff line number Diff line change 8
8
CARGO_TERM_COLOR : always
9
9
10
10
jobs :
11
- cargo- test-and-lint :
11
+ test-and-lint :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- name : Checkout source
15
15
uses : actions/checkout@v2
16
16
17
- - name : Get main commit hash
18
- id : main_commit
19
- run : echo "::set-output name=hash::$(git rev-parse origin/main)"
20
-
21
- - name : Cache target, rustup and cargo registry
22
- id : cache-target
23
- uses : actions/cache@v2
24
- with :
25
- path : |
26
- ~/.rustup
27
- ~/.cargo/registry
28
- ~/.cargo/bin
29
- target
30
- key : ${{ github.event.issue.number }}-${{ runner.os }}-pr
31
- restore-keys : main-${{ steps.main_commit.outputs.hash }}
17
+ - uses : Swatinem/rust-cache@v1
32
18
33
19
- name : cargo test
34
20
uses : actions-rs/cargo@v1
47
33
with :
48
34
token : ${{ secrets.GITHUB_TOKEN }}
49
35
args : -- -D warnings
36
+
37
+ test-windows :
38
+ runs-on : windows-latest
39
+ steps :
40
+ - name : Checkout source
41
+ uses : actions/checkout@v2
42
+
43
+ - uses : Swatinem/rust-cache@v1
44
+
45
+ - name : cargo test
46
+ uses : actions-rs/cargo@v1
47
+ with :
48
+ command : test
49
+ args : --workspace
50
+
51
+ test-macos :
52
+ runs-on : macos-latest
53
+ steps :
54
+ - name : Checkout source
55
+ uses : actions/checkout@v2
56
+
57
+ - uses : Swatinem/rust-cache@v1
58
+
59
+ - name : cargo test
60
+ uses : actions-rs/cargo@v1
61
+ with :
62
+ command : test
63
+ args : --workspace
You can’t perform that action at this time.
0 commit comments