Skip to content

Commit

Permalink
Debug build versioning
Browse files Browse the repository at this point in the history
- Work on any dev branch
- Moved building code back into workflow file
- Debug build will use the default version given to it by msbuild. Also apply short SHA to artifact filename.
  • Loading branch information
gbakeman committed Aug 12, 2024
1 parent 58321e0 commit 714ed5c
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/build-debug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: build-debug

on:
workflow_dispatch:

pull_request:
branches: Dev-2.2
branches: dev-*
paths:
- '**.vb'
- '**.vbproj'
Expand All @@ -13,10 +12,22 @@ jobs:
build-debug:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build solution in Debug configuration
uses: ./.github/actions/build-solution
- name: "Get Short SHA"
run: echo "SHORT_SHA=$("${{ github.sha }}".SubString(0, 8))" >> $env:GITHUB_ENV

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2

- name: Checkout Code
uses: actions/checkout@v4

# msbuild cannot handle .vdproj Installer projects, so only build debug for now.
- name: Build solution
run: msbuild -t:build -restore -p:Configuration=Debug WinNUT_V2/WinNUT_V2.sln

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
build-mode: "Debug"
version: "${{ vars.PRERELEASE_VERSION }}.*"
name: ${{ format('WinNUT-Client-debugbuild-{0}', env.SHORT_SHA) }}
if-no-files-found: error
path: WinNUT_V2/WinNUT-Client/bin/Debug

0 comments on commit 714ed5c

Please sign in to comment.