Skip to content

Commit

Permalink
ci: Add clazy nightly workflow
Browse files Browse the repository at this point in the history
Change-Id: I6a4fc59473201352955e3e2d8cde2232f2b2de7d
  • Loading branch information
iamsergio committed Jan 20, 2025
1 parent b9fc9b1 commit ba704f6
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# SPDX-FileCopyrightText: 2025 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
#
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only

name: Nightly Clazy

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


jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu-22.04
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: 6.6
cache: true

- name: Install dependencies on Ubuntu
run: |
sudo apt update -qq
sudo apt install lld valgrind clazy llvm ninja-build -y
- uses: actions/checkout@v4

- name: Configure project
run: cmake -S . -B ./build-clazy6 --preset clazy6

- name: Clazy
run: cmake --build ./build-clazy6
15 changes: 15 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,21 @@
"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"
}
},
{
"name": "clazy6",
"configurePreset": "clazy6",
"inherits": "clazy"
},
{
"name": "clazy-no-werror",
"configurePreset": "clazy-no-werror",
"inherits": "clazy"
},
{
"name": "clazy6-no-werror",
"configurePreset": "clazy6-no-werror",
"inherits": "clazy"
}
]
}

0 comments on commit ba704f6

Please sign in to comment.