-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.26 KB
/
Copy pathci.yml
File metadata and controls
51 lines (41 loc) · 1.26 KB
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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
RUSTFLAGS: -D warnings
jobs:
build-and-test:
name: Build and test (default)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential pkg-config libusb-1.0-0-dev libudev-dev \
clang cmake nasm libssl-dev libfontconfig1-dev \
libxkbcommon-dev wayland-protocols libwayland-dev \
libx11-dev libinput-dev libdrm-dev libjpeg-turbo8-dev \
libavcodec-dev libavformat-dev libavutil-dev libswscale-dev
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.94
components: rustfmt
- name: cargo fmt
run: cargo fmt --all -- --check
- uses: Swatinem/rust-cache@v2
- name: cargo test (shared + devices)
run: |
cargo test -p lianli-shared --lib
cargo test -p lianli-devices --lib pairing
- name: cargo build release
run: cargo build --release -p lianli-daemon -p lianli-gui