Skip to content

Commit ff50fdf

Browse files
Add GitHub workflow for CI builds
1 parent 11287bd commit ff50fdf

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: .NET
2+
on: [ push, pull_request ]
3+
4+
jobs:
5+
build:
6+
runs-on: windows-2025-vs2026
7+
steps:
8+
- name: Set up project
9+
uses: actions/checkout@v6
10+
11+
- name: Set up MSBuild
12+
uses: microsoft/setup-msbuild@v3
13+
14+
- name: Set up NuGet
15+
uses: NuGet/setup-nuget@v4.0
16+
17+
- name: Restore NuGet packages
18+
working-directory: src
19+
run: nuget restore ShutdownTimerClassic.sln
20+
21+
- name: Build Solution
22+
working-directory: src
23+
run: |
24+
msbuild.exe ShutdownTimerClassic.sln /p:platform="Any CPU" /p:configuration="Debug"
25+
26+
- name: Upload build artifacts
27+
uses: actions/upload-artifact@v7
28+
with:
29+
path: src\ShutdownTimer\bin\Debug
30+
compression-level: 9
31+
include-hidden-files: true

0 commit comments

Comments
 (0)