Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .clazy

This file was deleted.

37 changes: 17 additions & 20 deletions .github/workflows/nightly.yml → .github/workflows/tidyclazy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@
#
# SPDX-License-Identifier: MIT

name: CI Nightly
name: Tidy and Clazy

on:
schedule:
- cron: '0 3 * * *'

env:
CLAZY_CHECKS: "level2,no-qstring-allocations,no-fully-qualified-moc-types"
CLAZY_IGNORE_DIRS: ".*libkode.*"
push:
branches:
- master
- kdsoap-2.1
- kdsoap-2.2
pull_request:
branches:
- master
- kdsoap-2.1
- kdsoap-2.2

jobs:
build:
Expand All @@ -23,11 +27,11 @@ jobs:

config:
- name: clang-tidy
cmake_arg: '-DCMAKE_CXX_CLANG_TIDY=clang-tidy'
preset: "clang-tidy"
qt_version: "6.6"

- name: clazy
cmake_arg: '-DCMAKE_CXX_COMPILER=clazy'
preset: "clazy"
qt_version: "6.6"
apt_pgks:
- clazy
Expand All @@ -48,22 +52,15 @@ jobs:
sudo apt update -qq
echo ${{ join(matrix.config.apt_pgks, ' ') }} | xargs sudo apt install -y

- uses: actions/checkout@v4
with:
ref: 'master' # schedule.cron do not allow branch setting
- name: Checkout sources
uses: actions/checkout@v4

- name: Fetch Git submodules
run: git submodule update --init --recursive

- name: Configure project
run: >
cmake -S . -B ./build -G Ninja ${{ matrix.config.cmake_arg }}
-DCMAKE_BUILD_TYPE=Release
--warn-uninitialized -Werror=dev
-DCMAKE_BUILD_TYPE=Debug
-DKDSoap_QT6=ON
-DKDSoap_TESTS=ON
cmake --preset=${{ matrix.config.preset }}

- name: Build Project
id: ctest
run: cmake --build ./build
run: cmake --build --preset=${{ matrix.config.preset }}
18 changes: 16 additions & 2 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@
"CCACHE_DISABLE": "ON"
}
},
{
"name": "clang-tidy",
"inherits": "dev",
"cacheVariables": {
"KDSoap_EXAMPLES": "OFF",
"KDSoap_TESTS": "OFF",
"CMAKE_CXX_CLANG_TIDY": "clang-tidy"
}
},
{
"name": "release",
"inherits": "base",
Expand All @@ -82,9 +91,14 @@
"name": "clazy",
"configurePreset": "clazy",
"environment": {
"CLAZY_CHECKS": "level2,detaching-member,heap-allocated-small-trivial-type,isempty-vs-count,qstring-varargs,qvariant-template-instantiation,raw-environment-function,reserve-candidates,signal-with-return-value,thread-with-slots,no-ctor-missing-parent-argument,no-missing-typeinfo,no-skipped-base-method",
"CCACHE_DISABLE": "ON"
"CLAZY_CHECKS": "level2,no-qstring-allocations,no-fully-qualified-moc-types",
"CCACHE_DISABLE": "ON",
"CLAZY_IGNORE_DIRS": ".*libkode.*"
}
},
{
"name": "clang-tidy",
"configurePreset": "clang-tidy"
}
]
}