forked from Mrkol/graphics-course
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.2 KB
/
windows.yaml
File metadata and controls
47 lines (38 loc) · 1.2 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
name: windows
on: [push, pull_request]
permissions:
contents: read
# mostly stolen from
# https://github.com/fmtlib/fmt
jobs:
build:
runs-on: windows-2022
strategy:
matrix:
build_type: [Debug, RelWithDebInfo, Release]
steps:
- uses: actions/checkout@v4
- name: Configure Vulkan SDK
uses: humbletim/setup-vulkan-sdk@v1.2.1
with:
vulkan-query-version: 1.4.328.1
vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Tools, Glslang
vulkan-use-cache: true
- name: Install CMake
uses: ssrobins/install-cmake@v1
with:
version: 3.30.2
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure
# Use a bash shell for $GITHUB_WORKSPACE.
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
$GITHUB_WORKSPACE
- name: Build
working-directory: ${{runner.workspace}}/build
run: |
$threads = (Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors
cmake --build . --config ${{matrix.build_type}} --parallel $threads