File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -29,28 +29,31 @@ jobs:
29
29
- name : " Checkout Repository"
30
30
uses : actions/checkout@v1
31
31
32
- - name : Install Rustup (macOS)
33
- run : |
34
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
35
- echo ::add-path::$HOME/.cargo/bin
36
- if : runner.os == 'macOS'
37
-
38
- - name : Set Rustup profile to minimal
39
- run : rustup set profile minimal
32
+ - name : Set up Rustup
33
+ uses : actions-rs/toolchain@v1
34
+ with :
35
+ profile : minimal
36
+ toolchain : stable
40
37
41
38
- name : " Print Rust Version"
42
39
run : |
43
40
rustc -Vv
44
41
cargo -Vv
45
42
46
43
- name : " Run cargo build"
47
- run : cargo build
44
+ uses : actions-rs/cargo@v1
45
+ with :
46
+ command : build
48
47
49
48
- name : " Run cargo test"
50
- run : cargo test
49
+ uses : actions-rs/cargo@v1
50
+ with :
51
+ command : test
51
52
52
53
- name : " Deny Warnings"
53
- run : cargo build
54
+ uses : actions-rs/cargo@v1
55
+ with :
56
+ command : build
54
57
env :
55
58
RUSTFLAGS : " -D warnings"
56
59
You can’t perform that action at this time.
0 commit comments