Skip to content

Commit

Permalink
CI: Try building windows without CUDA visual_studio_integration
Browse files Browse the repository at this point in the history
Installing that package is very slow, 10-20 min. Doing it this
way is said to require using `cl.exe` rather than msbuild, so
cmake should generate a working build without msbuild (?)

May need to install ninja, I'm not sure. Trying without that first.

Signed-off-by: Gary Oberbrunner <[email protected]>
  • Loading branch information
garyo committed Mar 30, 2024
1 parent f27ed7e commit 11a0ecd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,13 @@ jobs:
brew:
brew-cask:

- name: Setup MSVC
if: startsWith(matrix.os, 'windows')
uses: ilammy/[email protected] # use cl, not msbuild
# We use cl.exe because it can find CUDA without the CUDA visual studio integration,
# which is extremely slow to install (see Jimver/cuda-toolkit below)
# See comments at https://github.com/Jimver/cuda-toolkit/issues/253

- name: Install CUDA Toolkit
uses: Jimver/[email protected]
id: cuda-toolkit-linux
Expand All @@ -215,7 +222,7 @@ jobs:
with:
cuda: '12.1.0'
method: 'network'
sub-packages: '["nvcc", "cudart", "visual_studio_integration"]'
sub-packages: '["nvcc", "cudart"]'
# workaround for cuda-toolkit action bug https://github.com/Jimver/cuda-toolkit/issues/315
use-github-cache: false
use-local-cache: false
Expand Down

0 comments on commit 11a0ecd

Please sign in to comment.