-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (38 loc) · 1.03 KB
/
build-windows.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
name: Build Windows
on:
push:
branches: [ "main" ]
pull_request:
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: windows-latest
env:
Solution_Name: CanaryLauncherUpdate.csproj
Test_Project_Path: CanaryLauncherUpdate.csproj
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet test
- name: Publish
run: dotnet publish
- name: Upload Build Artifact
uses: actions/upload-artifact@v2
with:
name: CanaryLauncher
path: D:\a\CanaryLauncherUpdate\CanaryLauncherUpdate\bin\Debug\net6.0-windows\publish\