This repository was archived by the owner on Sep 1, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (61 loc) · 1.75 KB
/
Copy pathwindows-build.yml
File metadata and controls
73 lines (61 loc) · 1.75 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Windows Build
on:
workflow_dispatch:
push:
paths:
- '**'
pull_request:
paths:
- '**'
concurrency:
group: windows-build-${{ github.ref }}
cancel-in-progress: true
jobs:
windows-build:
name: Build (Windows, CMake+Ninja)
runs-on: windows-latest
env:
CMAKE_BUILD_TYPE: Release
steps:
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Install CMake
uses: ssrobins/install-cmake@v1
- name: Install CUDA Toolkit
uses: Jimver/cuda-toolkit@v0.2.34
with:
cuda: "13.2.0"
- name: Install Vulkan SDK
uses: jakoch/install-vulkan-sdk-action@v1.4.0
with:
version: latest
components: Vulkan-Headers,Vulkan-Loader,Glslang
cache: true
- name: Toolchain sanity
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
cl /Bv
cmake --version
ninja --version
if (-not $env:CUDA_PATH) { throw "CUDA_PATH is not set" }
Get-Command nvcc | Select-Object -ExpandProperty Source
nvcc --version
Get-Command glslangValidator | Select-Object -ExpandProperty Source
glslangValidator --version
- name: Checkout
uses: actions/checkout@v4
- name: Configure
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
cmake -S . -B build -G Ninja `
-DCMAKE_BUILD_TYPE="$env:CMAKE_BUILD_TYPE" `
-DCUDAToolkit_ROOT="$env:CUDA_PATH" `
-DSMOKE_BUILD_BENCHMARK=ON `
-DSMOKE_BUILD_VULKAN_APP=ON
- name: Build
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
cmake --build build --target all --parallel