Skip to content

Commit 35a1b47

Browse files
committed
add github action
1 parent 2ae401c commit 35a1b47

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/master.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: master
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
build:
9+
runs-on: windows-2022
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: nuget/setup-nuget@v2
13+
- uses: microsoft/setup-msbuild@v1.1
14+
with:
15+
msbuild-architecture: x64
16+
17+
- uses: dorny/paths-filter@v2
18+
id: changes
19+
with:
20+
filters: |
21+
buildprops:
22+
- 'Directory.Build.props'
23+
24+
- name: NuGet restore
25+
run: nuget restore OpenHardwareMonitor.sln
26+
27+
- name: Build
28+
run: msbuild OpenHardwareMonitor.sln -p:Configuration=Release -m
29+
30+
- name: Publish build
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: OpenHardwareMonitor
34+
path: |
35+
bin/OpenHardwareMonitor

0 commit comments

Comments
 (0)