forked from RealTimeChris/Jsonifier
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.19 KB
/
MSVC-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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build-and-Test-MSVC-Windows
on:
workflow_dispatch:
push:
branches:
- main
- dev
jobs:
Build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
msvc: [2022]
build_type: [Debug, Release]
std: [20]
steps:
- uses: actions/checkout@v4
- name: Append the directory of 'vcvarsall.bat' to PATH environment variable
uses: myci-actions/export-env-var-powershell@1
with:
name: PATH
value: $env:PATH;C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build
- name: Configure CMake
working-directory: ./
run: |
cmake -S . -B ./Build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DDEV="TRUE" -DJSONIFIER_TEST=true
- name: Build the Test
working-directory: ./Build
run: |
cmake --build . --config=${{matrix.build_type}}
- name: Install the Test
working-directory: ./Build
run: |
cmake --install . --config=${{matrix.build_type}}
- name: Run the Test
working-directory: C:/Program Files (x86)/Jsonifier/bin/
run: |
./Json-Performance.exe
continue-on-error: true