Refactoring #93
This file contains 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] | |
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: | | |
build-Debug/tests/toucan-test toucan/data | |
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: | | |
build-Debug/tests/toucan-test toucan/data | |
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: | | |
build-Debug/tests/toucan-test toucan/data | |
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 | |
shell: cmd | |
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 | |
shell: cmd | |
run: | | |
cmake --build build-Debug --target INSTALL | |
- name: Tests | |
shell: cmd | |
run: | | |
build-Debug\tests\Debug\toucan-test.exe toucan\data |