Skip to content

Commit d543aec

Browse files
committed
Debug build versioning
- Work on any dev branch - Gave workflow a name - 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 d543aec

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

.github/workflows/build-debug.yaml

+20-8
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,33 @@ 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'
1110

1211
jobs:
1312
build-debug:
13+
name: debug-build
1414
runs-on: windows-latest
1515
steps:
16-
- name: Checkout code
17-
uses: actions/checkout@v3
18-
- name: Build solution in Debug configuration
19-
uses: ./.github/actions/build-solution
16+
- name: "Get Short SHA"
17+
run: echo "SHORT_SHA=$("${{ github.sha }}".SubString(0, 8))" >> $env:GITHUB_ENV
18+
19+
- name: Setup MSBuild
20+
uses: microsoft/setup-msbuild@v2
21+
22+
- name: Checkout Code
23+
uses: actions/checkout@v4
24+
25+
# msbuild cannot handle .vdproj Installer projects, so only build debug for now.
26+
- name: Build solution
27+
run: msbuild -t:build -restore -p:Configuration=Debug WinNUT_V2/WinNUT_V2.sln
28+
29+
- name: Upload Artifact
30+
uses: actions/upload-artifact@v4
2031
with:
21-
build-mode: "Debug"
22-
version: "${{ vars.PRERELEASE_VERSION }}.*"
32+
name: ${{ format('WinNUT-Client-debugbuild-{0}', env.SHORT_SHA) }}
33+
if-no-files-found: error
34+
path: WinNUT_V2/WinNUT-Client/bin/Debug

0 commit comments

Comments
 (0)