-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 1.01 KB
/
dotnet-core-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
name: windows-desktop
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: windows-latest
env:
Solution_Name: Pengu.sln
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
# Install the .NET 5 workload
- name: Install .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.100-preview.6
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the application
run: dotnet restore
env:
Configuration: ${{ matrix.configuration }}
# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet test
# Build the application
- name: Build the application
run: dotnet build -c $env:Configuration /p:Platform=x64
env:
Configuration: ${{ matrix.configuration }}