Skip to content

...

... #855

name: testUbuntuClang
on: [push, pull_request]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install dependencies
run: |
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-noble.list http://packages.lunarg.com/vulkan/lunarg-vulkan-noble.list
sudo apt update --yes
sudo apt install --yes vulkan-sdk xorg-dev cmake libgtk-3-dev libdbus-1-dev libboost-dev
wget https://apt.llvm.org/llvm.sh
chmod u+x llvm.sh
sudo ./llvm.sh 17
sudo apt-get install --yes libomp-17-dev
- name: Configure CMake
run: |
CC="clang-17" CXX="clang++-17" cmake -B ${{github.workspace}}/build \
-DWERROR=YES \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DRAYX_ENABLE_CUDA=OFF \
-DCMAKE_CXX_FLAGS="-fopenmp -Werror" \
-DCMAKE_EXE_LINKER_FLAGS="-L/usr/lib/llvm-17/lib -lomp"
- name: Build
run: CXX="clang++-17 -Werror" cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Run
working-directory: ${{github.workspace}}
run: |
./build/bin/release/rayx -x -c -m 1 -i Intern/rayx-core/tests/input/BoringImagePlane.rml
git checkout -- Intern/rayx-core/tests/input/BoringImagePlane.csv
- name: Test
working-directory: ${{github.workspace}}/build/bin/release
run: ./rayx-core-tst -x