-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (33 loc) · 777 Bytes
/
Copy pathrust.yml
File metadata and controls
40 lines (33 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: miri
- name: Build
run: cargo +stable build --verbose
- name: Run tests
run: cargo +stable test --verbose
- name: Run miri tests
run: cargo +nightly miri test --verbose
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: rustfmt
- name: Format
run: cargo fmt --verbose -- --check