Added PID #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-latest, ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Linux deps | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libx11-dev \ | |
| libxrandr-dev \ | |
| libxinerama-dev \ | |
| libxcursor-dev \ | |
| libxi-dev \ | |
| libxext-dev \ | |
| libgl1-mesa-dev | |
| - name: Configure (Windows) | |
| if: runner.os == 'Windows' | |
| run: cmake -S . -B build -G "Visual Studio 17 2022" -A x64 | |
| - name: Build (Windows) | |
| if: runner.os == 'Windows' | |
| run: cmake --build build --config Release --parallel | |
| - name: Smoke test example output (Windows) | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| $out = (& .\build\Release\director.exe --example 2>&1 | Out-String) | |
| if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | |
| if (($out -notmatch "\[db\]") -or ($out -notmatch "enabled\s*=\s*true")) { | |
| Write-Error "Example output missing expected content" | |
| Write-Host "Captured output:" | |
| Write-Host $out | |
| exit 1 | |
| } | |
| - name: Configure (Unix) | |
| if: runner.os != 'Windows' | |
| run: | | |
| if [ "${{ runner.os }}" = "Linux" ]; then | |
| cmake -S . -B build -G Ninja -DGLFW_BUILD_WAYLAND=OFF -DGLFW_BUILD_X11=ON | |
| else | |
| cmake -S . -B build -G Ninja | |
| fi | |
| - name: Build (Unix) | |
| if: runner.os != 'Windows' | |
| run: cmake --build build --parallel | |
| - name: Smoke test example output (Unix) | |
| if: runner.os != 'Windows' | |
| run: | | |
| ./build/director --example > /tmp/director-example.txt | |
| grep -q "\[db\]" /tmp/director-example.txt | |
| grep -q "enabled = true" /tmp/director-example.txt |