ci: make the self-hosted runner bundle Qt to save time #145
Workflow file for this run
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: 2024 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]> | |
# | |
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only | |
name: Build against external nlohmann and KDBindings | |
on: | |
push: | |
branches: | |
- main | |
- 2.2 | |
pull_request: | |
branches: | |
- main | |
- 2.2 | |
jobs: | |
build: | |
runs-on: macos-13 | |
steps: | |
- name: Install Qt 6.7.2 | |
uses: jurplel/install-qt-action@v3 | |
with: | |
version: 6.7.2 | |
cache: true | |
- name: Install Dependencies | |
run: | | |
brew install nlohmann-json | |
brew tap KDAB/tap | |
brew install KDBindings | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
# deleting 3rdparty is an easy way to make sure external worked | |
- name: Delete internal 3rdparty | |
run: | | |
rm -rf src/3rdparty/nlohmann/ | |
rm -rf src/3rdparty/kdbindings/ | |
- name: Configure | |
run: cmake -S . --preset dev6 -DKDDockWidgets_WERROR=OFF | |
- name: Build | |
run: cmake --build ./build-dev6 | |
- name: Run tests on macOS | |
run: ctest --test-dir ./build-dev6 --verbose |