Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Ubuntu 24.04 for testing; add visionaray-cuda to testing matrix #2

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 33 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,43 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-24.04]
config: [Release, Debug]
cuda: [ON, OFF]

steps:
- uses: actions/checkout@v3

- name: Add NVIDIA package repositories
if: >-
matrix.os == 'ubuntu-24.04' &&
matrix.cuda == 'ON'
run: |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin
sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/ /"
sudo apt update

- name: Install CUDA
if: >-
matrix.os == 'ubuntu-24.04' &&
matrix.cuda == 'ON'
run: sudo apt-get install -y cuda-toolkit-12-6

- name: Setup CUDA
if: >-
matrix.os == 'ubuntu-24.04' &&
matrix.cuda == 'ON'
run: |
echo "/usr/local/cuda-12.6/bin" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=/usr/local/cuda-12.6/lib64:$LD_LIBRARY_PATH" >> $GITHUB_ENV

- 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 +84,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 +96,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
Loading