Skip to content

Debugging

Debugging #80

Workflow file for this run

name: CI
on: [push]
jobs:
linux-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: toucan
submodules: recursive
- name: Setup
run: |
echo "$PWD/install-Debug/bin" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=$PWD/install-Debug/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
sudo apt-get update
sudo apt-get install xorg-dev libglu1-mesa-dev mesa-common-dev mesa-utils xvfb
- name: Build
run: |
bash toucan/SuperBuild.sh Debug
- name: Install
run: |
cmake --build build-Debug --target install
- name: Tests
run: |
cmake --build build-Debug --target test
macos-12-build:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
with:
path: toucan
submodules: recursive
# \bug DYLD_LIBRARY_PATH is not being set here?
- name: Setup
run: |
echo "$PWD/install-Debug/bin" >> $GITHUB_PATH
echo "DYLD_LIBRARY_PATH=$PWD/install-Debug/lib:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV
- name: Build
run: |
bash toucan/SuperBuild.sh Debug
- name: Install
run: |
cmake --build build-Debug --target install
- name: Tests
run: |
cmake --build build-Debug --target test
macos-14-build:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
path: toucan
submodules: recursive
# \bug DYLD_LIBRARY_PATH is not being set here?
- name: Setup
run: |
echo "$PWD/install-Debug/bin" >> $GITHUB_PATH
echo "DYLD_LIBRARY_PATH=$PWD/install-Debug/lib:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV
- name: Build
run: |
bash toucan/SuperBuild.sh Debug
- name: Install
run: |
cmake --build build-Debug --target install
- name: Tests
run: |
cmake --build build-Debug --target test
windows-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
path: toucan
submodules: recursive
- uses: ilammy/setup-nasm@v1
# \bug Any spaces before the ">>" will be considered part of the path.
- name: Setup
run: |
echo %CD%\install-Debug\bin>> %GITHUB_PATH%
echo %CD%\install-Debug\lib>> %GITHUB_PATH%
echo CTEST_OUTPUT_ON_FAILURE=1 >> %GITHUB_ENV%
- name: Build
shell: cmd
run: |
toucan\SuperBuild.bat Debug
- name: Install
run: |
cmake --build build-Debug --target INSTALL
- name: Tests
run: |
dir build-Debug\tests\Debug
dir toucan\data
build-Debug\tests\Debug\toucan-test.exe toucan\data