Skip to content

[render] WIP Canvas refactoring to enable depth reading (tested only … #128

[render] WIP Canvas refactoring to enable depth reading (tested only …

[render] WIP Canvas refactoring to enable depth reading (tested only … #128

name: External - Build and run Tests
on:
[push, pull_request]
jobs:
external_build_and_run_tests:
name: External - 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']
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Install dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get install cmake ninja-build libtbb-dev catch2
- 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: external-${{ matrix.os }}-${{ 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_EXTERNAL=ON \
-DVCLIB_CORE_BUILD_EXAMPLES=OFF -DVCLIB_CORE_BUILD_TESTS=OFF \
..
ninja
- name: Run Tests
shell: bash
run: |
cd build
ctest --verbose