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 2f244d4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,21 @@ jobs:
- name: Install CUDA Toolkit
uses: Jimver/[email protected]
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/[email protected]
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: |
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 2f244d4

Please sign in to comment.