Skip to content

Update build_tool.yml #35

Update build_tool.yml

Update build_tool.yml #35

Workflow file for this run

name: Build Report Tool
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: windows-2022 # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
env:
Solution_Name: STI Test Report.sln
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the application
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
- name: Build
run: dotnet build --configuration Release
- name: Show Directory Content
run: dir "D:\a\STITestReport\STITestReport\STI Test Report\bin\release"
- name: Show Directory Content for Program Files (x86)
run: dir "C:\Program Files (x86)"
- name: Build Installer
working-directory: D:\a\STITestReport\STITestReport\Install
run: |
& "${$Env:WIX}\bin\candle.exe" STITestReport.wxs
& "${$Env:WIX}\bin\light.exe" STITestReport.wixobj
- name: Show Directory Content
run: dir "D:\a\STITestReport\STITestReport\Install"
- name: Upload binaries
uses: actions/upload-artifact@v3
with:
name: binaries
path: D:\a\STITestReport\STITestReport\STI Test Report\bin\release\net6.0-windows10.0.17763.0\
- name: Upload installer
uses: actions/upload-artifact@v3
with:
name: installer
path: D:\a\STITestReport\STITestReport\Install\STITestReport.msi