diff --git a/.github/workflows/nanovdb.yml b/.github/workflows/nanovdb.yml index 2f7e93b06d..dee840e076 100644 --- a/.github/workflows/nanovdb.yml +++ b/.github/workflows/nanovdb.yml @@ -61,10 +61,10 @@ jobs: strategy: matrix: config: - - { cxx: g++, image: '2022-clang11', build: 'Release' } - - { cxx: g++, image: '2022-clang11', build: 'Debug' } - - { cxx: clang++, image: '2022-clang11', build: 'Release' } - - { cxx: clang++, image: '2022-clang11', build: 'Debug' } + - { cxx: g++, image: '2024', build: 'Release' } + - { cxx: g++, image: '2024', build: 'Debug' } + - { cxx: clang++, image: '2024', build: 'Release' } + - { cxx: clang++, image: '2024', build: 'Debug' } fail-fast: false steps: - name: Enable Node 16 @@ -72,19 +72,14 @@ jobs: run: | echo "ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true" >> $GITHUB_ENV - uses: actions/checkout@v3 - - name: install_cuda_11 + - name: setup_cuda_12 run: | - # Fix error: Cannot prepare internal mirrorlist: No URLs in mirrorlist. CentOS 8 reached EOL means need to replace the official mirror to vault.centos.org - # Comment out mirrorlist and replace #baseurl=...mirror.centos.org with baseurl=...vault.centos.org in files starting with CentOS- in /etc/yum.repos.d folder - sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* - sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* yum -y install yum-utils - yum-config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo - echo "Installing cuda toolkit" - yum --enablerepo=epel -y install cuda-toolkit-11-6 - echo "/usr/local/cuda-11.6/bin" >> $GITHUB_PATH - echo "LD_LIBRARY_PATH=/usr/local/cuda-11.6/lib64:$LD_LIBRARY_PATH" >> $GITHUB_ENV + echo "/usr/local/cuda-12/bin" >> $GITHUB_PATH + echo "LD_LIBRARY_PATH=/usr/local/cuda-12/lib64:$LD_LIBRARY_PATH" >> $GITHUB_ENV - name: build + # NOTE: CMAKE_POSITION_INDEPENDENT_CODE set to fix default behaviour change in clang 14 + # https://github.com/AcademySoftwareFoundation/aswf-docker/issues/228 run: > ./ci/build.sh -v --build-type=${{ matrix.config.build }} @@ -95,6 +90,7 @@ jobs: -DNANOVDB_USE_OPENVDB=ON -DCMAKE_INSTALL_PREFIX=`pwd` -DUSE_BLOSC=OFF + -DCMAKE_POSITION_INDEPENDENT_CODE=ON \' - name: test run: cd build && sudo ctest -V -E ".*cuda.*"