Skip to content

Set D_LIBRARY_PATH again #42

Set D_LIBRARY_PATH again

Set D_LIBRARY_PATH again #42

Workflow file for this run

name: Unit tests
on:
push:
branches:
- main
jobs:
main:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- uses: abatilo/actions-poetry@v2
- name: Install build system (Linux)
if: runner.os == 'Linux'
run: sudo apt-get install clang ninja-build
- name: Install build system (Windows)
uses: ilammy/msvc-dev-cmd@v1
if: runner.os == 'Windows'
- name: Install Conan
run: |
poetry install
poetry run conan version
- name: Restore Conan cache
uses: actions/cache@v4
with:
path: ~/.conan2
key: ${{ runner.os }}-${{ hashFiles('**/conan.lock') }}
- name: Install package dependencies
run: poetry run conan install . --profile:all=./.conan2/profiles/${{ runner.os }} --output-folder=build --build=missing --lockfile-partial
- name: Configure
run: cmake --preset conan-release
- name: Build
run: cmake --build --preset conan-release
- name: Xvfb (Linux)
if: runner.os == 'Linux'
run: Xvfb :1 -screen 0 1600x1200x24 &
- name: Test
if: runner.os == 'Linux'
run: LD_LIBRARY_PATH=vendor/lib:${LD_LIBRARY_PATH} DISPLAY=:1 ./bin/tests