mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2026-11-04 13:16:54 -06:00
chore: add clippy check in CI (#729)
* chore: Fix clippy warning in bindings * feature: Add clippy check in CI
This commit is contained in:
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
|
||||
@@ -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
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user