Merge pull request #9 from RalfVio/Task908695 #28
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: 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: Build Installer | |
working-directory: D:\a\STITestReport\STITestReport\Install | |
run: | | |
& "C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe" STITestReport.wxs | |
& "C:\Program Files (x86)\WiX Toolset v3.11\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 |