change RPATH for rayx-core, rayx-core-tst, rayx, rayx-ui #1529
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: testUbuntuClang | |
| on: | |
| push: | |
| branches: | |
| - '**' # Run on all branches | |
| tags-ignore: | |
| - 'v*' # Ignore tag pushes matching 'v*' | |
| pull_request: | |
| branches: | |
| - '**' # Run for all pull requests | |
| env: | |
| BUILD_TYPE: Release | |
| jobs: | |
| build: | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| - name: Update Repositories to Ubuntu 24.04 | |
| run: | | |
| sudo sed -i 's/jammy/lunar/g' /etc/apt/sources.list /etc/apt/sources.list.d/*.list | |
| sudo apt update | |
| - name: Install Vulkan SDK | |
| run: | | |
| wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/lunarg.gpg | |
| sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.3.296-noble.list https://packages.lunarg.com/vulkan/1.3.296/lunarg-vulkan-1.3.296-noble.list | |
| sudo apt update && sudo apt install --yes vulkan-sdk xorg-dev libgtk-3-dev libdbus-1-dev | |
| - name: Install clang, cmake, hdf5, boost, valgrind | |
| run: | | |
| sudo apt-get install --yes clang clang-tools libc++-dev libc++abi-dev cmake libhdf5-dev libboost-dev valgrind | |
| - name: Print Versions | |
| run: | | |
| echo "clang version:" | |
| clang --version | |
| - name: Install llvm | |
| run: | | |
| 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" CXX="clang++" cmake -B ${{github.workspace}}/build \ | |
| -DRAYX_WERROR=OFF \ | |
| -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
| - name: Run | |
| working-directory: ${{github.workspace}} | |
| run: | | |
| export RML=Intern/rayx-core/tests/input/METRIX_U41_G1_H1_318eV_PS_MLearn_v114.rml | |
| ./build/bin/release/rayx -x -c -V -i $RML | |
| valgrind --error-exitcode=42 ./build/bin/release/rayx -x -V -i $RML | |
| - name: Test | |
| working-directory: ${{github.workspace}}/build/bin/release | |
| run: ./rayx-core-tst -x |