-
Notifications
You must be signed in to change notification settings - Fork 35
39 lines (33 loc) · 1.05 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
name: Build Workflow
on: [ push, pull_request ]
jobs:
build:
name: Build (C++${{ matrix.cpp_standard }}, Header Only ${{ matrix.use_header_only }}, ${{ matrix.config }})
runs-on: windows-latest
strategy:
matrix:
cpp_standard: [ 20 ]
use_header_only: [ NO, YES ]
config: [ Debug, Release, MinSizeRel, RelWithDebInfo ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create build directory
run: mkdir build
- name: Configure
working-directory: build
run: |
cmake `
-DCMAKE_CXX_STANDARD=${{ matrix.cpp_standard }} `
-DRED4EXT_HEADER_ONLY=${{ matrix.use_header_only }} `
-DRED4EXT_USE_PCH=ON `
-DRED4EXT_BUILD_EXAMPLES=ON `
-DRED4EXT_EXTRA_WARNINGS=ON `
-DRED4EXT_TREAT_WARNINGS_AS_ERRORS=ON `
${{ github.workspace }}
- name: Build
working-directory: build
run: |
cmake `
--build . `
--config ${{ matrix.config }}