Skip to content

Commit

Permalink
CI CUDA install: try to make it smaller to avoid disk-space issue
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
garyo committed Dec 29, 2023
1 parent 2fcbc0a commit 7c0601b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,22 @@ jobs:

- name: Install CUDA Toolkit
uses: Jimver/[email protected]
id: cuda-toolkit
id: cuda-toolkit-linux
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/[email protected]
id: cuda-toolkit-win
if: matrix.ostype == 'windows'
with:
cuda: '12.1.0'
method: 'network'
sub-packages: '["nvcc", "cudart", "visual_studio_integration"]'

# - name: Install system dependencies (CentOS)
# run: |
Expand All @@ -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
Expand Down

0 comments on commit 7c0601b

Please sign in to comment.