-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (34 loc) · 902 Bytes
/
rust.yaml
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, pull_request]
jobs:
run:
name: Run
runs-on: ubuntu-latest
strategy:
matrix:
features: [--all-features, --no-default-features]
steps:
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
override: true
- name: Get sources
uses: actions/checkout@v2
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --workspace ${{ matrix.features }}
- name: Lint
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace ${{ matrix.features }} -- -D warnings
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace ${{ matrix.features }}