chore: add clippy check in CI (#729)

* chore: Fix clippy warning in bindings

* feature: Add clippy check in CI
This commit is contained in:
Alik Aslanyan authored and GitHub committed 2025-08-31 15:02:09 +03:00
1 parent 2c191bad59
commit 4e13cdae12
3 files changed
+30 -10

No files matched your search

@@ -0,0 +1,14 @@
name: Setup Environment
description: Installs dependencies and setups the environment for LACT
runs:
using: composite
steps:
- name: Update repos
run: sudo apt update
shell: bash
- name: Install dependencies
run: sudo apt install -y libgtk-4-dev pkg-config libvulkan-dev libdrm-dev curl fuse3 libfuse-dev ocl-icd-libopencl1 ocl-icd-opencl-dev
shell: bash
- name: Update pci.ids
run: sudo curl -o /usr/share/hwdata/pci.ids https://pci-ids.ucw.cz/v2.2/pci.ids
shell: bash
+14 -9
View File
@@ -9,17 +9,11 @@ env:
jobs:
build-test:
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
runs-on: ubuntu-24.04
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
- name: Update repos
run: sudo apt update
- name: Install dependencies
run: sudo apt install -y libgtk-4-dev pkg-config libvulkan-dev libdrm-dev curl fuse3 libfuse-dev ocl-icd-libopencl1 ocl-icd-opencl-dev
- name: Update pci.ids
run: sudo curl -o /usr/share/hwdata/pci.ids https://pci-ids.ucw.cz/v2.2/pci.ids
- uses: ./.github/actions/setup-environment
- name: Build
run: cargo build
- name: Run tests
@@ -30,7 +24,18 @@ jobs:
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
- name: install rustfmt
- name: Install rustfmt
run: rustup component add rustfmt
- name: Check formatting
run: cargo fmt -- --check
check-clippy:
runs-on: ubuntu-24.04
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
- uses: ./.github/actions/setup-environment
- name: Install clippy
run: rustup component add clippy
- name: Run clippy
run: cargo clippy --verbose
+2 -1
View File
@@ -5,7 +5,8 @@
unused,
clippy::too_many_arguments,
clippy::pedantic,
clippy::upper_case_acronyms
clippy::upper_case_acronyms,
clippy::ptr_offset_with_cast
)]
pub mod intel {