forked from kokkos/kokkos
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 841 Bytes
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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