From 20f296fd9a86e4c1f441cd444813d65de69dfe08 Mon Sep 17 00:00:00 2001 From: Gary Oberbrunner Date: Fri, 29 Dec 2023 09:35:03 -0500 Subject: [PATCH] CI CUDA install: try to make it smaller to avoid disk-space issue Github CI runners have only ~14GB free space. CUDA takes a lot. Using the "network" method with only a subset of packages may help. Signed-off-by: Gary Oberbrunner --- .github/workflows/build.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e77970af..1dcd02e6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -137,8 +137,21 @@ jobs: - name: Install CUDA Toolkit uses: Jimver/cuda-toolkit@v0.2.11 id: cuda-toolkit + if: ${{ matrix.ostype == "linux" }} with: cuda: '12.1.0' + method: 'network' + sub-packages: '["nvcc", "cudart"]' + linux-local-args: ["--toolkit"] + + - name: Install CUDA Toolkit + uses: Jimver/cuda-toolkit@v0.2.11 + id: cuda-toolkit + if: ${{ matrix.ostype == windows }} + with: + cuda: '12.1.0' + method: 'network' + sub-packages: '["nvcc", "cudart", "visual_studio_integration"]' # - name: Install system dependencies (CentOS) # run: | @@ -161,6 +174,8 @@ jobs: -DCMAKE_POLICY_DEFAULT_CMP0091=NEW \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_EXAMPLE_PLUGINS=TRUE + -DOFX_SUPPORTS_OPENGLRENDER=TRUE + -DOFX_SUPPORTS_CUDARENDER=TRUE fi - name: Build with cmake