Skip to content

Commit

Permalink
Update msbuild.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
august95 authored Sep 13, 2024
1 parent 877ca84 commit 43b4197
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: MSBuild

on:
# push:
# branches: [ "main" ]
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

Expand All @@ -14,7 +14,7 @@ permissions:
contents: read

jobs:
build-braze_compiler:
build-compiler_lib:
runs-on: windows-latest

steps:
Expand All @@ -27,6 +27,21 @@ jobs:
run: nuget restore braze_compiler.sln

- name: Build braze_compiler Static Library
run: msbuild compiler_lib/compiler_lib.vcxproj.vcxproj /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform=${{ env.PLATFORM }} /verbosity:diagnostic

build-braze_compiler:
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 executable
run: msbuild braze_compiler/braze_compiler.vcxproj /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform=${{ env.PLATFORM }} /verbosity:diagnostic

build-unit_test:
Expand All @@ -43,4 +58,4 @@ jobs:
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 }} /verbosity:diagnostic
run: msbuild unit_test/unit_test.vcxproj /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform=${{ env.PLATFORM }} /verbosity:diagnostic

0 comments on commit 43b4197

Please sign in to comment.