-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (50 loc) · 1.67 KB
/
msbuild.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
56
57
58
59
60
61
62
63
64
65
name: MSBuild
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_CONFIGURATION: Release
PLATFORM: x64 # Ensure this matches your build platform
permissions:
contents: read
jobs:
build-compiler_lib:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Restore NuGet packages
run: nuget restore braze_compiler.sln
- name: Build braze_compiler Static Library
run: msbuild compiler_lib/compiler_lib.vcxproj /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform=${{ env.PLATFORM }}
# build-braze_compiler:
# runs-on: windows-latest
# needs: build-compiler_lib
#
# steps:
# - uses: actions/checkout@v4
#
# - name: Add MSBuild to PATH
# uses: microsoft/[email protected]
#
# - name: Restore NuGet packages
# run: nuget restore braze_compiler.sln
#
# - name: Build braze_compiler executable
# run: msbuild braze_compiler/braze_compiler.vcxproj /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform=${{ env.PLATFORM }} /verbosity:diagnostic
build-unit_test:
runs-on: windows-latest
needs: build-compiler_lib
steps:
- uses: actions/checkout@v4
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Restore NuGet packages
run: nuget restore braze_compiler.sln
- name: Build unit_test Project
run: msbuild unit_test/unit_test.vcxproj /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform=${{ env.PLATFORM }}
- name: Run Unit Tests
run: D:\a\braze_compiler\braze_compiler\unit_test\x64\Release\unit_test.exe