Skip to content

Commit 6eff16d

Browse files
utilForeverCopilot
andcommitted
ci: fix Windows CUDA workflow configure
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b273366 commit 6eff16d

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/windows-cuda.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ jobs:
7676
if (-not (Test-Path $nvccExe)) {
7777
throw "nvcc executable '$nvccExe' does not exist."
7878
}
79-
mkdir build && cd build && cmake -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_BUILD_TYPE=Release -DUSE_CUDA=ON -DCUDA_CRT_LINKAGE=dynamic -DCMAKE_CUDA_COMPILER="$nvccExe" -DCUDAToolkit_ROOT="$env:CUDA_PATH" ..
79+
New-Item -ItemType Directory -Path build -Force | Out-Null
80+
cmake -S . -B build -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_BUILD_TYPE=Release -DUSE_CUDA=ON -DCUDA_CRT_LINKAGE=dynamic -DCMAKE_CUDA_COMPILER="$nvccExe" -DCUDAToolkit_ROOT="$env:CUDA_PATH"
8081
- name: Build
81-
run: cd build && MSBuild.exe ${{ matrix.solution }} /p:Configuration=Release
82+
shell: powershell
83+
run: MSBuild.exe "build\\${{ matrix.solution }}" /p:Configuration=Release

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,4 @@ if (NOT USE_CUDA AND NOT BUILD_SONARCLOUD)
180180
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${DEFAULT_CMAKE_LIBRARY_OUTPUT_DIRECTORY})
181181
endif()
182182
add_subdirectory(Sources/API/Python)
183-
endif()
183+
endif()

0 commit comments

Comments
 (0)