Skip to content

Commit 60a1fcd

Browse files
committed
CI: add ImGUI build
1 parent cd68ba6 commit 60a1fcd

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

.github/workflows/builds.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,27 +546,46 @@ jobs:
546546
working-directory: ${{runner.workspace}}/build
547547
run: cmake --build . --config $BUILD_TYPE -j 2
548548

549-
build-ui-qt:
549+
build-ui:
550+
name: 'Build UI: ${{ matrix.ui }}'
550551
runs-on: ubuntu-22.04
552+
strategy:
553+
fail-fast: false
554+
matrix:
555+
include:
556+
- ui: QT
557+
- ui: IMGUI
551558
env:
552559
BUILD_TYPE: Release
553-
CMAKE_FLAGS: -DSPIRIT_UI_USE_IMGUI=OFF -DSPIRIT_UI_CXX_USE_QT=ON
560+
CMAKE_FLAGS_QT: -DSPIRIT_UI_USE_IMGUI=OFF -DSPIRIT_UI_CXX_USE_QT=ON
561+
CMAKE_FLAGS_IMGUI: -DSPIRIT_UI_USE_IMGUI=ON -DSPIRIT_UI_CXX_USE_QT=OFF
554562

555563
steps:
556564
- uses: actions/checkout@v4
557565

558566
- name: Install Qt5
567+
if: ${{ matrix.ui == 'QT' }}
559568
run: |
560569
sudo apt-get update
561570
sudo apt-get install -y qtbase5-dev libqt5charts5-dev
562571
572+
- name: Install ImGUI dependencies
573+
if: ${{ matrix.ui == 'IMGUI' }}
574+
run: |
575+
sudo apt-get update
576+
sudo apt-get install -y libwayland-dev libxkbcommon-dev xorg-dev libgtk-3-dev
577+
563578
- name: Create build folder
564579
run: cmake -E make_directory ${{runner.workspace}}/build
565580

566581
- name: Configure
567582
shell: bash
568583
working-directory: ${{runner.workspace}}/build
569-
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $CMAKE_FLAGS
584+
run: >
585+
cmake
586+
$GITHUB_WORKSPACE
587+
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
588+
$CMAKE_FLAGS_${{ matrix.ui }}
570589
571590
- name: Build
572591
shell: bash

0 commit comments

Comments
 (0)