Skip to content

Merge pull request #1 from bigmat18/main #86

Merge pull request #1 from bigmat18/main

Merge pull request #1 from bigmat18/main #86

name: Render - Build and run Tests
on:
[push, pull_request]
jobs:
render_build_and_run_tests:
name: Render - Build and run Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-22.04', 'ubuntu-24.04', 'macos-13', 'macos-latest', 'windows-latest']
render_backend: ['bgfx', 'opengl2']
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
cache: 'true'
version: '6.6.*'
- name: Install dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get install cmake ninja-build libtbb-dev catch2
sudo apt-get install freeglut3-dev libgl1-mesa-dev libxi-dev libxinerama-dev libxcursor-dev libxrandr-dev
- name: Install dependencies
if: runner.os == 'macOS'
shell: bash
run: |
brew install ninja
- name: Install dependencies
if: runner.os == 'Windows'
run: |
choco upgrade ccache ninja
- name: Ccache
uses: hendrikmuhs/[email protected]
with:
key: render-${{ matrix.os }}-${{matrix.render_backend}}-${{ github.ref }}
- name: Build
shell: bash
run: |
mkdir build
cd build
cmake -GNinja \
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_BUILD_TYPE=Release \
-DVCLIB_BUILD_MODULE_RENDER=ON \
-DVCLIB_RENDER_BACKEND=${{ matrix.render_backend }} \
-DVCLIB_CORE_BUILD_EXAMPLES=OFF -DVCLIB_CORE_BUILD_TESTS=OFF \
..
ninja
# - name: Run Tests
# shell: bash
# run: |
# cd build
# ctest --verbose