Skip to content

Commit 714ed5c

Browse files
committed
Debug build versioning
- 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.
1 parent 58321e0 commit 714ed5c

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

.github/workflows/build-debug.yaml

+19-8
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ name: build-debug
22

33
on:
44
workflow_dispatch:
5-
65
pull_request:
7-
branches: Dev-2.2
6+
branches: dev-*
87
paths:
98
- '**.vb'
109
- '**.vbproj'
@@ -13,10 +12,22 @@ jobs:
1312
build-debug:
1413
runs-on: windows-latest
1514
steps:
16-
- name: Checkout code
17-
uses: actions/checkout@v3
18-
- name: Build solution in Debug configuration
19-
uses: ./.github/actions/build-solution
15+
- name: "Get Short SHA"
16+
run: echo "SHORT_SHA=$("${{ github.sha }}".SubString(0, 8))" >> $env:GITHUB_ENV
17+
18+
- name: Setup MSBuild
19+
uses: microsoft/setup-msbuild@v2
20+
21+
- name: Checkout Code
22+
uses: actions/checkout@v4
23+
24+
# msbuild cannot handle .vdproj Installer projects, so only build debug for now.
25+
- name: Build solution
26+
run: msbuild -t:build -restore -p:Configuration=Debug WinNUT_V2/WinNUT_V2.sln
27+
28+
- name: Upload Artifact
29+
uses: actions/upload-artifact@v4
2030
with:
21-
build-mode: "Debug"
22-
version: "${{ vars.PRERELEASE_VERSION }}.*"
31+
name: ${{ format('WinNUT-Client-debugbuild-{0}', env.SHORT_SHA) }}
32+
if-no-files-found: error
33+
path: WinNUT_V2/WinNUT-Client/bin/Debug

0 commit comments

Comments
 (0)