Update msbuild.yml

This commit is contained in:
Pax1601
2023-12-13 17:36:05 +01:00
committed by GitHub
parent d1ccccae18
commit 3a96808aa5

View File

@@ -3,12 +3,6 @@ name: Backend build
on: on:
push: push:
branches: [ "main" ] branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
SOLUTION_FILE_PATH: ./src/olympus.sln
BUILD_CONFIGURATION: Release
permissions: permissions:
contents: read contents: read
@@ -23,18 +17,21 @@ jobs:
- name: Add MSBuild to PATH - name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2 uses: microsoft/setup-msbuild@v1.0.2
- name: Install packages and dependencies - name: Setup vcpkg
run: | run: |
bootstrap-vcpkg bootstrap-vcpkg
vcpkg integrate install vcpkg integrate install
- name: Setup Node.js
uses: actions/setup-node@v2
- name: Build - name: Build
working-directory: ${{env.GITHUB_WORKSPACE}} working-directory: .
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} run: build_package.bat
- name: Upload a Build Artifact - name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.3 uses: actions/upload-artifact@v3.1.3
with: with:
name: binaries name: Installer
path: bin/*.dll path: installer/Output/*.exe