Skip to content

Commit 0a5fa3d

Browse files
committed
CI: Use actions-rs for better error reporting
1 parent 303ff94 commit 0a5fa3d

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,31 @@ jobs:
2929
- name: "Checkout Repository"
3030
uses: actions/checkout@v1
3131

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
4037

4138
- name: "Print Rust Version"
4239
run: |
4340
rustc -Vv
4441
cargo -Vv
4542
4643
- name: "Run cargo build"
47-
run: cargo build
44+
uses: actions-rs/cargo@v1
45+
with:
46+
command: build
4847

4948
- name: "Run cargo test"
50-
run: cargo test
49+
uses: actions-rs/cargo@v1
50+
with:
51+
command: test
5152

5253
- name: "Deny Warnings"
53-
run: cargo build
54+
uses: actions-rs/cargo@v1
55+
with:
56+
command: build
5457
env:
5558
RUSTFLAGS: "-D warnings"
5659

0 commit comments

Comments
 (0)