Skip to content

Fixed build failures #21

Fixed build failures

Fixed build failures #21

Workflow file for this run

name: CI
on:
push:
branches: [ main, development ]
pull_request:
branches: [ main ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Install system dependencies
run: |
sudo apt update
sudo apt install -y \
build-essential \
pkg-config \
libdbus-1-dev \
libdbus-glib-1-dev \
libudev-dev \
libbluetooth-dev \
protobuf-compiler
# Set environment variables for pkg-config
echo "PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/share/pkgconfig" >> $GITHUB_ENV
echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run tests
run: cargo test --all-features