-
Notifications
You must be signed in to change notification settings - Fork 12
54 lines (45 loc) · 1.42 KB
/
nightly.yml
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
# SPDX-FileCopyrightText: 2024 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
#
# SPDX-License-Identifier: MIT
name: Nightly
on:
schedule:
- cron: '37 21 * * *'
workflow_dispatch:
push:
env:
CC: "clang"
CXX: "clang++"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: Ubuntu
os: ubuntu-24.04
# Specify executable name on Linux to have control over the version.
# Sadly, on Linux these per-version executables aren't there.
tidy-executable: clang-tidy-18
- name: Windows
os: windows-2022
tidy-executble: clang-tidy
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install ninja-build tool
if: runner.os == 'Windows'
uses: turtlesec-no/get-ninja@main
- name: Install linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt update -qq
sudo apt install -y libxkbcommon-dev libxcb-xkb-dev \
libxkbcommon-x11-dev wayland-scanner++ wayland-protocols \
libwayland-dev xvfb ninja-build
- name: Configure project
run: >
cmake -S . -B ./build -G Ninja -DKDUTILS_BUILD_TESTS=True -DCMAKE_CXX_CLANG_TIDY="${{matrix.tidy-executable}}"
-DCMAKE_BUILD_TYPE=Release
- name: Build Project
run: cmake --build ./build