forked from facebookresearch/narwhal
-
Notifications
You must be signed in to change notification settings - Fork 34
34 lines (30 loc) · 933 Bytes
/
rust.yml
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
name: Rust
on:
push:
branches: [ bullshark ]
pull_request:
branches: [ bullshark ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup
run: |
rustup toolchain install 1.51.0-x86_64-unknown-linux-gnu
rustup component add rustfmt --toolchain 1.51.0-x86_64-unknown-linux-gnu
rustup component add clippy --toolchain 1.51.0-x86_64-unknown-linux-gnu
- name: Build (default)
run: cargo build --all-targets --verbose
- name: Build (all features)
run: cargo build --all-features --all-targets --verbose
- name: Run tests (all features)
run: cargo test --all-features --verbose
- name: Rustfmt
run: cargo fmt -- --check
- name: Clippy (default)
run: cargo clippy --all-targets
- name: Clippy (all features)
run: cargo clippy --all-features --all-targets