Skip to content

ci(aur): tweak

ci(aur): tweak #120

Workflow file for this run

name: Clippy
on:
push:
env:
RUST_BACKTRACE: 1
jobs:
clippy:
name: Clippy rust
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [nightly]
steps:
- uses: actions/checkout/@v4
- name: Cargo Cache
id: cargo-cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-clippy-${{ hashFiles('**/Cargo.lock') }}
- name: Install Dbus
if: startsWith(matrix.os, 'ubuntu-')
run: |
sudo apt update
sudo apt install -y libdbus-1-dev pkg-config
- name: Install Toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: clippy
- name: Run Clippy Allow Warning
if: ${{ ! (github.ref == 'refs/heads/main' || github.event_name == 'pull_request') }}
run: cargo clippy --locked
- name: Run Clippy Deny Warning
if: github.ref == 'refs/heads/main' || github.event_name == 'pull_request'
run: cargo clippy --locked -- -D warnings