Skip to content

Commit bbc1ed3

Browse files
authored
Update CI 2
1 parent c5b4f44 commit bbc1ed3

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

.github/workflows/rust.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,22 @@ env:
1111

1212
jobs:
1313
build:
14-
14+
name: Rust project
1515
runs-on: ubuntu-latest
16-
1716
steps:
18-
- uses: actions/checkout@v2
19-
- name: Build
20-
run: cargo +nightly build --verbose
21-
- name: Run tests
22-
run: cargo +nightly test --verbose
17+
- uses: actions/checkout@v2
18+
- name: Install latest nightly
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
toolchain: nightly
22+
override: true
23+
components: rustfmt, clippy
24+
- uses: actions/checkout@v2
25+
- name: Run cargo test
26+
uses: actions-rs/cargo@v1
27+
with:
28+
command: test
29+
- name: Run cargo build
30+
uses: actions-rs/cargo@v1
31+
with:
32+
command: build

0 commit comments

Comments
 (0)