Update msbuild.yml #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} /verbosity:diagnostic | |
# 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 }} /verbosity:diagnostic | |
- name: Run Unit Tests | |
run: .\x64\Debug\unit_test.exe |