Skip to content

Add nightly clang-tidy/clazy/cppcheck checks #6

Add nightly clang-tidy/clazy/cppcheck checks

Add nightly clang-tidy/clazy/cppcheck checks #6

Workflow file for this run

# SPDX-FileCopyrightText: 2023 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
#
# SPDX-License-Identifier: LGPL-2.1-only OR LicenseRef-KDAB-KDStateMachineEditor
name: CI Nightly
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
config:
- name: clang-tidy
qt_version: "6.6"
- name: clazy
qt_version: "6.6"
apt_pgks:
- clazy
- cppcheck
steps:
- name: Install Qt ${{ matrix.config.qt_version }} with options and default aqtversion
uses: jurplel/install-qt-action@v4
with:
version: ${{ matrix.config.qt_version }}
cache: true
- name: Install ninja-build tool (must be after Qt due PATH changes)
uses: turtlesec-no/get-ninja@main
- name: Install dependencies on Ubuntu (${{ join(matrix.config.apt_pgks, ' ') }})
if: ${{ runner.os == 'Linux' && matrix.config.apt_pgks }}
run: |
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: Fetch Git submodules
run: git submodule update --init --recursive
- name: Configure project
run: cmake -S . -B ./build --preset ${{ matrix.config.name }}
- name: Build Project
run: cmake --build ./build/${{ matrix.config.name }} --preset ${{ matrix.config.name }}