Skip to content

Commit d98a1ac

Browse files
authored
Merge pull request #178 from nutdotnet/177-fix-package-restoration
Modify MSBuild command, version upgrades
2 parents 9e9e5ec + e4d09d7 commit d98a1ac

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/build-validate.yaml

+5-8
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,18 @@ jobs:
2424
runs-on: ${{ matrix.os }}
2525
strategy:
2626
matrix:
27-
os: [windows-2019] # Should have MSBuild.
27+
os: [windows-latest] # Should have MSBuild.
2828
steps:
2929
# Make MSBuild available from $PATH.
3030
- name: setup-msbuild
31-
uses: microsoft/setup-msbuild@v1.1
31+
uses: microsoft/setup-msbuild@v2
3232

3333
- name: Checkout Code
34-
uses: actions/checkout@v3
35-
36-
- name: Restore Packages
37-
run: msbuild -t:restore
34+
uses: actions/checkout@v4
3835

3936
# msbuild cannot handle .vdproj Installer projects, so only build debug for now.
4037
- name: Build solution
41-
run: msbuild $env:SLN_FILE -p:Configuration=Debug
38+
run: msbuild -t:build -restore -p:Configuration=Debug $env:SLN_FILE
4239

4340
# For now, let msbuild continue autogenerating assembly versions and base everything off of that.
4441
- name: Get AssemblyVersion generated by msbuild
@@ -48,7 +45,7 @@ jobs:
4845
directory: ${{ env.DEBUG_OUTPUT }}
4946

5047
- name: Upload Artifact
51-
uses: actions/upload-artifact@v3
48+
uses: actions/upload-artifact@v4
5249
with:
5350
name: ${{ format('WinNUT-Client-debugbuild-v{0}', steps.getversion.outputs.version) }}
5451
if-no-files-found: error

0 commit comments

Comments
 (0)