Skip to content

Commit

Permalink
try enabling Ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
szellmann committed Oct 5, 2024
1 parent df63a8d commit bde0540
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/anari-visionaray-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: anari-visionaray CI

on:
push:
branches: [ main ]
branches: [ main, ci ]
pull_request:
branches: [ main ]

Expand All @@ -11,17 +11,30 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-24.04]
config: [Release, Debug]
cuda: [ON]

steps:
- uses: actions/checkout@v3

- name: Install CUDA
uses: Jimver/cuda-toolkit@master
with:
cuda: '12.5.0'

- name: Setup CUDA
run: |
echo "CUDA_PATH=/usr/local/cuda-12.5" >> $GITHUB_ENV
echo "/usr/local/cuda-12.5/bin" >> $GITHUB_PATH
nvcc -V
nvidia-smi
- name: Install Packages
if: ${{ matrix.os == 'ubuntu-latest' }}
if: ${{ matrix.os == 'ubuntu-24.04' }}
run: |
sudo apt update
sudo apt install -y libglew-dev libboost-all-dev # nvidia-cuda-toolkit
sudo apt install -y libglew-dev libboost-all-dev
- name: Checkout ANARI-SDK
uses: actions/checkout@v3
Expand Down Expand Up @@ -58,7 +71,8 @@ jobs:
-DVSNRAY_ENABLE_EXAMPLES:BOOL=OFF \
-DVSNRAY_ENABLE_VIEWER:BOOL=OFF \
-DVSNRAY_ENABLE_COMMON:BOOL=OFF \
-DVSNRAY_ENABLE_CUDA:BOOL=OFF
-DVSNRAY_ENABLE_CUDA:BOOL=${{ matrix.cuda }} \
-DVSNRAY_ENABLE_TBB:BOOL=OFF \
cmake --build visionaray/build --target install
- name: Configure CMake
Expand All @@ -69,7 +83,7 @@ jobs:
-DCMAKE_BUILD_TYPE=${{ matrix.config }}
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install
-DBUILD_SHARED_LIBS:BOOL=ON
-DANARI_VISIONARAY_ENABLE_CUDA:BOOL=OFF # cuda and gcc-11.4 don't work together
-DANARI_VISIONARAY_ENABLE_CUDA:BOOL=${{ matrix.cuda }}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.config }} --target install

0 comments on commit bde0540

Please sign in to comment.