Skip to content

Share MSDF text atlas builder #177

Share MSDF text atlas builder

Share MSDF text atlas builder #177

Workflow file for this run

name: CI Windows
on:
push:
branches: [ main, master, dev ]
pull_request:
branches: [ main, master, dev ]
defaults:
run:
shell: bash
env:
CMAKE_BUILD_TYPE: Release
jobs:
build-rhi:
name: ${{ matrix.name }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- name: QRhi (Windows)
text: OFF
benchmark: OFF
examples: OFF
- name: QRhi+Text (Windows)
text: ON
benchmark: ON
examples: ON
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v4.3.1
with:
version: '6.10.1'
arch: 'win64_msvc2022_64'
archives: 'qtbase qtdeclarative'
modules: 'qtshadertools'
cache: 'true'
- name: Configure CMake
run: |
cmake -B build -S . \
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
-DVNM_PLOT_ENABLE_TEXT=${{ matrix.text }} \
-DVNM_PLOT_BUILD_TESTS=ON \
-DVNM_PLOT_BUILD_BENCHMARK=${{ matrix.benchmark }} \
-DVNM_PLOT_BUILD_EXAMPLES=${{ matrix.examples }} \
-DVNM_PLOT_BUILD_FUNCTION_PLOTTER=OFF
- name: Build
run: cmake --build build --config ${CMAKE_BUILD_TYPE}
- name: Run tests
working-directory: build
env:
QT_QPA_PLATFORM: offscreen
run: ctest --output-on-failure -C ${CMAKE_BUILD_TYPE}
- name: Build summary
run: |
echo "=== ${{ matrix.name }} completed ==="
find build -name '*.lib' -print || echo "Libraries built successfully"