forked from xmrig/xmrig-cuda
-
Notifications
You must be signed in to change notification settings - Fork 6
21 lines (19 loc) · 852 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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