-
Notifications
You must be signed in to change notification settings - Fork 35
68 lines (54 loc) · 2.11 KB
/
nightly.yml
File metadata and controls
68 lines (54 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# 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 * * *'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
config:
- name: clang-tidy
qt_version: 6.9.0
qt_modules: qtscxml
- name: clazy
qt_version: 6.9.0
qt_modules: qtscxml
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 }}
modules: ${{ matrix.config.qt_modules }}
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@v6
#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 --preset ${{ matrix.config.name }}
- name: Build Project
run: cmake --build ./build/${{ matrix.config.name }} --preset ${{ matrix.config.name }}
- name: Hack - create empty file as graphviz expr target is not used so exparse.c is not generated
run: touch ./build/${{ matrix.config.name }}/3rdparty/graphviz/lib/expr/exparse.c
- name: Run cppcheck
if: ${{ matrix.config.name == 'clazy' }}
run: cmake --build ./build/${{ matrix.config.name }} --preset ${{ matrix.config.name }} --target kdsme_cppcheck