-
Notifications
You must be signed in to change notification settings - Fork 6
68 lines (64 loc) · 1.76 KB
/
check.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
on: [push]
name: Check code
jobs:
format-code:
name: Format
runs-on: ubuntu-latest
steps:
- uses: kopernikusauto/checkout@v3.3.0
- uses: kopernikusauto/toolchain@v1.0.6
with:
toolchain: stable
- run: cargo fmt
lint:
name: Lint using Clippy
runs-on: ubuntu-latest
steps:
- uses: kopernikusauto/checkout@v3.3.0
- uses: kopernikusauto/toolchain@v1.0.6
with:
toolchain: stable
- name: lint
uses: kopernikusauto/clippy-check@v1.0.7
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --no-deps
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: kopernikusauto/checkout@v3.3.0
- uses: kopernikusauto/toolchain@v1.0.6
with:
toolchain: stable
- uses: kopernikusauto/cargo@v1.0.1
with:
command: build
args: --release
# Build again with all features.
- uses: kopernikusauto/cargo@v1.0.1
with:
command: build
args: --release --all-features
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: kopernikusauto/checkout@v3.3.0
- uses: kopernikusauto/toolchain@v1.0.6
with:
toolchain: stable
- run: sudo add-apt-repository ppa:ecal/ecal-latest && sudo apt-get update && sudo apt-get install ecal -y
- uses: kopernikusauto/cargo@v1.0.1
with:
command: test
args: --release --lib demo
- uses: kopernikusauto/cargo@v1.0.1
with:
command: test
args: --release --lib src
# Test again with all features.
- uses: kopernikusauto/cargo@v1.0.1
with:
command: test
args: --release --lib src --all-features