From 43b419770504124fffa1dce4604213a9c0d1f377 Mon Sep 17 00:00:00 2001 From: Ingvar August Wedervang <55133964+august95@users.noreply.github.com> Date: Fri, 13 Sep 2024 16:52:11 +0200 Subject: [PATCH] Update msbuild.yml --- .github/workflows/msbuild.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index a0eea90..c27803f 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -1,8 +1,8 @@ name: MSBuild on: -# push: -# branches: [ "main" ] + push: + branches: [ "main" ] pull_request: branches: [ "main" ] @@ -14,7 +14,7 @@ permissions: contents: read jobs: - build-braze_compiler: + build-compiler_lib: runs-on: windows-latest steps: @@ -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/setup-msbuild@v1.0.2 + + - 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: @@ -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 \ No newline at end of file + run: msbuild unit_test/unit_test.vcxproj /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform=${{ env.PLATFORM }} /verbosity:diagnostic