Standard Exception logging subroutine, variable error handling, misc. bugfixes #128
Workflow file for this run
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-debug | |
defaults: | |
run: | |
working-directory: WinNUT_V2 | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ main, dev-* ] # Build for dev primarily, probably don't need main...? | |
paths: | |
- '**.vb' | |
- '**.vbproj' | |
env: | |
DOTNET_VERSION: '4.8' # The .NET SDK version to use | |
SLN_FILE: WinNUT_V2.sln | |
DEBUG_OUTPUT: WinNUT_V2/WinNUT-Client/bin/Debug | |
jobs: | |
build: | |
name: debug-build-${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-2019] # Should have MSBuild. | |
steps: | |
# Make MSBuild available from $PATH. | |
- name: setup-msbuild | |
uses: microsoft/setup-msbuild@v1.1 | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Restore Packages | |
run: msbuild -t:restore | |
# msbuild cannot handle .vdproj Installer projects, so only build debug for now. | |
- name: Build solution | |
run: msbuild $env:SLN_FILE -p:Configuration=Debug | |
# For now, let msbuild continue autogenerating assembly versions and base everything off of that. | |
- name: Get AssemblyVersion generated by msbuild | |
id: getversion | |
uses: berglie/assembly-version/get@v1 | |
with: | |
directory: ${{ env.DEBUG_OUTPUT }} | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ format('WinNUT-Client-debugbuild-v{0}', steps.getversion.outputs.version) }} | |
if-no-files-found: error | |
path: ${{ env.DEBUG_OUTPUT }} | |