-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (43 loc) · 1.1 KB
/
ci.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
name: CI
on:
push:
branches:
- master
pull_request:
schedule:
- cron: "50 6 * * *"
workflow_dispatch:
env:
rust_toolchain: nightly
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
compile:
name: Compile
runs-on: ubuntu-latest
strategy:
matrix:
target:
- default
steps:
- name: Setup | Rust
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ env.rust_toolchain }}
components: rustfmt, clippy, rust-src
- name: Install libdbus
run: sudo apt-get install -y libdbus-1-dev
- name: Install libavahi-client
run: sudo apt-get install -y libavahi-client-dev
- name: Setup | Checkout
uses: actions/checkout@v3
- name: Build | Fmt Check
run: cargo fmt -- --check
# - name: Build | Clippy
# run: cargo clippy --no-deps -- -Dwarnings
- name: Build | Compile
run: cargo build
# - name: Build | Examples
# env:
# WIFI_SSID: "ssid"
# WIFI_PASS: "pass"
# run: cargo build --examples --features examples