try enabling Ubuntu 24.04 #202
Workflow file for this run
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: anari-visionaray CI | ||
on: | ||
push: | ||
branches: [ main, ci ] | ||
pull_request: | ||
branches: [ main ] | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-24.04] | ||
config: [Release, Debug] | ||
cuda: [ON] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Packages | ||
if: ${{ matrix.os == 'ubuntu-24.04' }} | ||
if: ${{ matrix.cuda == 'ON' }} | ||
run: | | ||
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb | ||
sudo dpkg -i cuda-keyring_1.1-1_all.deb | ||
sudo apt -y install cuda | ||
echo 'export PATH=/usr/local/cuda-12.6/bin${PATH:+:${PATH}}' >> ~/.bashrc | ||
echo 'export CMAKE_PREFIX_PATH=/usr/local/cuda-12.6${CMAKE_PREFIX_PATH:+:${CMAKE_PREFIX_PATH}}' >> ~/.bashrc | ||
echo 'export LD_LIBRARY_PATH=/usr/local/cuda-12.6/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}' >> ~/.bashrc | ||
source ~/.bashrc | ||
run: | | ||
sudo apt update | ||
sudo apt install -y libglew-dev libboost-all-dev | ||
- name: Checkout ANARI-SDK | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: KhronosGroup/ANARI-SDK | ||
path: ANARI-SDK | ||
ref: next_release | ||
- name: Build ANARI-SDK | ||
run: | | ||
mkdir -p opt | ||
cmake ANARI-SDK -B ANARI-SDK/build \ | ||
-DCMAKE_INSTALL_PREFIX=opt \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DBUILD_EXAMPLES:BOOL=OFF \ | ||
-DBUILD_VIEWER:BOOL=OFF \ | ||
-DBUILD_HELIDE_DEVICE:BOOL=OFF \ | ||
-DINSTALL_VIEWER_LIBRARY:BOOL=OFF \ | ||
-DBUILD_TESTING:BOOL=OFF | ||
cmake --build ANARI-SDK/build --target install | ||
- name: Checkout Visionaray | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: szellmann/visionaray | ||
path: visionaray | ||
ref: master | ||
- name: Build Visionaray | ||
run: | | ||
cmake visionaray -B visionaray/build \ | ||
-DCMAKE_INSTALL_PREFIX=opt \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DVSNRAY_ENABLE_EXAMPLES:BOOL=OFF \ | ||
-DVSNRAY_ENABLE_VIEWER:BOOL=OFF \ | ||
-DVSNRAY_ENABLE_COMMON:BOOL=OFF \ | ||
-DVSNRAY_ENABLE_CUDA:BOOL=${{ matrix.cuda }} \ | ||
-DVSNRAY_ENABLE_TBB:BOOL=OFF \ | ||
cmake --build visionaray/build --target install | ||
- name: Configure CMake | ||
env: | ||
CMAKE_PREFIX_PATH: opt | ||
run: > | ||
cmake -LA -B ${{github.workspace}}/build | ||
-DCMAKE_BUILD_TYPE=${{ matrix.config }} | ||
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install | ||
-DBUILD_SHARED_LIBS:BOOL=ON | ||
-DANARI_VISIONARAY_ENABLE_CUDA:BOOL=${{ matrix.cuda }} | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.config }} --target install |