Updated Windows/MSVS #102
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: push | |
name: Test builds | |
jobs: | |
build_win_cuda11_3: | |
name: Windows CUDA 12.3 | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@master | |
- name: Install CUDA | |
run: | | |
powershell -Command "Invoke-WebRequest https://developer.download.nvidia.com/compute/cuda/12.3.2/network_installers/cuda_12.3.2_windows_network.exe -OutFile .\cuda_setup.exe" | |
start /wait .\cuda_setup.exe -s | |
shell: cmd | |
- name: Build project on Windows | |
run: | | |
cmake . -G "Visual Studio 16 2019" -DCUDA_TOOLKIT_ROOT_DIR="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.3" | |
cd "C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin" | |
.\MSBuild.exe /p:Configuration=Release $Env:GITHUB_WORKSPACE\xmrig-cuda.sln || exit 1 |