testUbuntu #1631
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: testUbuntu | |
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 cmake libgtk-3-dev libdbus-1-dev libboost-dev | |
- name: Install Cuda | |
uses: Jimver/cuda-toolkit@master | |
id: cuda-toolkit | |
with: | |
cuda: '12.4.1' | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DWERROR=YES -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DRAYX_REQUIRE_CUDA=ON | |
- name: Build | |
run: 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 | |
- name: CPack | |
working-directory: ${{github.workspace}}/build | |
run: cpack -G DEB | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: RAYX | |
path: ${{github.workspace}}/build/RAYX-*.*.*-Linux.deb | |