From c9d70483f751b66af10a7d3d160fdc077694e445 Mon Sep 17 00:00:00 2001 From: tr1ngledev Date: Mon, 26 Feb 2024 01:27:01 +0800 Subject: [PATCH] msvc build action --- .github/workflows/msbuild.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/msbuild.yml diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml new file mode 100644 index 0000000..b7728d1 --- /dev/null +++ b/.github/workflows/msbuild.yml @@ -0,0 +1,33 @@ +name: MSVC Build + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + SOLUTION_FILE_PATH: . + +permissions: + contents: read + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + with: + submodules: 'recursive' + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Restore NuGet packages + working-directory: ${{env.GITHUB_WORKSPACE}} + run: nuget restore ${{env.SOLUTION_FILE_PATH}} + + - name: Build + working-directory: ${{env.GITHUB_WORKSPACE}} + run: msbuild /m /p:configuration=release /p:platform=x64 ${{env.SOLUTION_FILE_PATH}}