Skip to content

Commit

Permalink
Add CI for MSVC+Cuda (#6661)
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Jan 4, 2024
1 parent efc0c36 commit 06de563
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/windows.yml
@@ -0,0 +1,36 @@
name: github-windows

on:
push:
pull_request:

concurrency:
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}

permissions:
contents: read

jobs:
windows-cuda:
# Cuda build on Windows
name: Windows Cuda
runs-on: windows-2022

steps:
- uses: Jimver/cuda-toolkit@v0.2.11
id: cuda-toolkit
with:
cuda: '12.1.0'
- uses: actions/checkout@v4
- name: configure
shell: bash
run: |
mkdir build
mkdir c:/project
cd build
cmake -DKokkos_ENABLE_CUDA=ON -DKokkos_ARCH_VOLTA70=ON -DKokkos_ENABLE_TESTS=ON -DKokkos_ENABLE_COMPILE_AS_CMAKE_LANGUAGE=ON ..
- name: build library
shell: bash
run: |
cmake --build build --parallel 2 --config Release

0 comments on commit 06de563

Please sign in to comment.