-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (34 loc) · 810 Bytes
/
rust.yml
File metadata and controls
36 lines (34 loc) · 810 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
name: Rust
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
name: Checkout code
with:
fetch-depth: 1
- uses: actions-rs/toolchain@v1
name: Install toolchain
with:
toolchain: stable
target: x86_64-unknown-linux-musl
- uses: actions-rs/cargo@v1
name: Check formatting
with:
command: fmt
args: -- --check
- uses: actions-rs/cargo@v1
name: Run tests (ahm!)
with:
command: test
args: --verbose
- uses: actions-rs/cargo@v1
name: Run clippy
with:
command: clippy
- uses: actions-rs/cargo@v1
name: Build
with:
command: build
args: --verbose