Skip to content

...

... #1598

Workflow file for this run

name: testUbuntu
on: [push, pull_request]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Make some space
run: |
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/share/swift
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/hostedtoolcache
sudo rm -rf /opt/ghc
sudo rm -rf /opt/az
df -h
- 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
- name: Install Cuda
uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '12.5.0'
- 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