-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (28 loc) · 928 Bytes
/
build.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
name: Build
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Linux Dependencies
run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev
- name: Setup Rust toolchain and cache
uses: actions-rust-lang/setup-rust-toolchain@v1.9.0
# - name: cargo fmt
# run: cargo fmt --all -- --check
- name: Run Clippy
run: cargo clippy --all-targets --all-features
- name: Build
run: cargo build --verbose
- name: Run Unit Tests
run: cargo test --all-targets --all-features
- name: Run Integration Tests
run: cargo test --all-targets --all-features -- --ignored --show-output --test-threads=1