Skip to content

[General] Fix build #120

[General] Fix build

[General] Fix build #120

Workflow file for this run

name: Build
on:
push:
tags:
- '*'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Setup VS Dev Environment
uses: seanmiddleditch/gha-setup-vsdevenv@v4
- name: Setup NuGet
uses: NuGet/[email protected]
- name: Navigate to Workspace
run: cd $GITHUB_WORKSPACE
- name: Restore Packages
run: dotnet restore dcs-dtc/DTC.csproj
- name: Disable Out of Process Building
run: .\DisableOutOfProcBuild.exe
working-directory: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\VSI\DisableOutOfProcBuild
- name: Build Solution
run: |
dotnet publish -c Release -p:PublishProfile=FolderProfile dcs-dtc\DTC.csproj
- name: Build the Installer
run: DevEnv installer/installer.vdproj /build Release
- uses: actions/upload-artifact@v2
with:
name: build-result
path: installer/Release/dtc-setup.msi
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: installer/Release/dtc-setup.msi
asset_name: dtc-setup-${{ github.ref_name }}.msi
tag: ${{ github.ref }}
overwrite: true