Skip to content

Commit 80d973f

Browse files
committed
Switch these
1 parent c133168 commit 80d973f

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/build-and-test.yml

+8-14
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
11
on: [push]
22

33
name: CI
4-
4+
env:
5+
CARGO_TERM_COLOR: always
56
jobs:
67
build_and_test:
78
name: Rust project
89
runs-on: ubuntu-latest
910
steps:
1011
- uses: actions/checkout@v3
11-
- uses: Swatinem/rust-cache@v2
12-
- uses: actions-rs/toolchain@v1
13-
with:
14-
toolchain: stable
15-
- uses: actions-rs/cargo@v1
16-
name: Cargo test
17-
with:
18-
command: test
19-
- uses: actions-rs/cargo@v1
20-
name: Cargo build
21-
with:
22-
command: build
23-
args: --release --all-features
12+
- name: Setup Rust toolchain with caching
13+
uses: brndnmtthws/rust-action@v1
14+
- run: cargo build
15+
- run: cargo test
16+
env:
17+
RUST_BACKTRACE: 1

0 commit comments

Comments
 (0)