-
-
Notifications
You must be signed in to change notification settings - Fork 137
53 lines (45 loc) · 1.32 KB
/
examples.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
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
#
# While our "example" application has the platform-specific code,
# for simplicity we are compiling and testing everything on the Ubuntu environment only.
# For multi-OS testing see the `cross.yml` workflow.
on:
push:
paths-ignore:
- '*.md'
pull_request: {}
name: Compile all examples
# We specify the examples individually since they might need a different environment
jobs:
compile_example_threaded_capture:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
components: rustfmt, clippy
toolchain: nightly
override: true
- name: Cargo Clippy
run: |
cd examples/threaded-capture
cargo clippy
compile_example_nokhwactl:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
components: rustfmt, clippy
toolchain: nightly
override: true
- name: Cargo Check
run: |
cd examples/capture
cargo clippy