-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (27 loc) · 874 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Build Program
on:
push:
branches: ["main"]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Setup MSBuild Path
uses: microsoft/setup-msbuild@v2
- name: Setup NuGet
uses: nuget/setup-nuget@v2
- name: Restore NuGet Packages
run: nuget restore MSIFanControl.sln
- name: Build Solution
run: msbuild.exe MSIFanControl.sln /nologo /nr:false /p:DeployOnBuild=true /p:platform="Any CPU" /p:configuration="${{ matrix.configuration }}"
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: "MSIFanControl-${{ matrix.configuration }}"
path: "./MSIFanControl.GUI/bin/${{ matrix.configuration }}/"
compression-level: 9