Skip to content

Add clippy CI and fail on warnings #130

Add clippy CI and fail on warnings

Add clippy CI and fail on warnings #130

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
RUSTFLAGS: "-Dwarnings"
jobs:
build:
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- name: Install system dependencies (Linux)
if: runner.os == 'Linux'
run: sudo apt-get install -y libadwaita-1-dev libgtk-4-dev
- name: Install system dependencies (macOS)
if: runner.os == 'macOS'
run: brew install libadwaita gtk4
- name: Build and Test
run: cargo test --all --all-features
- name: Lint
run: cargo clippy --all-targets --all-features