-
-
Notifications
You must be signed in to change notification settings - Fork 30
55 lines (47 loc) · 1.23 KB
/
build.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
types: [opened, synchronize, reopened]
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build-windows:
name: Build Windows
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
configuration:
- Debug
- Release
include:
- configuration: Debug
preset: debug
- configuration: Release
preset: release
steps:
- name: Checkout Source
uses: actions/checkout@v4
with:
submodules: recursive
- name: Enable Developer Command Prompt
uses: ilammy/[email protected]
- name: CMake Build
run: cmake --workflow --preset=${{matrix.preset}}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: Windows ${{matrix.configuration}} Artifacts
path: |
build/${{matrix.preset}}/artifacts/*
- name: Dump Registry
run: cd build/${{matrix.preset}}/artifacts && ../../../src/grab-registry.bat
- name: CMake Test
run: cd build/${{matrix.preset}} && ctest --verbose