Using the variable CUDA-ARCH instead of hard coding #12
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
name: CUDA CI on Windows | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up MSVC environment | |
uses: ilammy/[email protected] | |
- name: Install CUDA | |
run: | | |
choco install cuda --version=11.2.2.46133 | |
- name: add CUDA to path | |
run: | | |
SET "PATH=%PATH%;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin" | |
- name: check CUDA version | |
run: | | |
nvcc -v | |
- name: Build project | |
run: | | |
cd src && make | |