CI Nightly #365
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]> | |
# | |
# SPDX-License-Identifier: MIT | |
name: CI Nightly | |
on: | |
schedule: | |
- cron: '0 3 * * *' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
config: | |
- preset: ci-dev-clang-tidy-qt6 | |
qt_version: "6.6" | |
qt_modules: qtshadertools qtscxml | |
- preset: ci-dev-clazy-qt6 | |
qt_version: "6.6" | |
qt_modules: qtshadertools qtscxml | |
apt_pgks: | |
- clazy | |
steps: | |
- name: Install Qt ${{ matrix.config.qt_version }} with options and default aqtversion | |
uses: jurplel/install-qt-action@v3 | |
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@v4 | |
- name: Fetch Git submodules | |
run: git submodule update --init --recursive | |
- name: Configure project | |
run: > | |
cmake -S . -G Ninja --preset ${{ matrix.config.preset }} | |
- name: Build Project | |
run: cmake --build ./build-${{ matrix.config.preset }} |