-
-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (35 loc) · 1.19 KB
/
msbuild.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
name: Template Studio for WinUI (C#)
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
platform: [x64, x86]
runs-on: windows-latest
# TODO: Update environment variables.
env:
Solution_Name: Fluent Auto Clicker.sln
Project_Name: Fluent Auto Clicker
Test_Project_Name: Fluent Auto Clicker.Tests.MSTest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
- name: Restore
run: dotnet restore $env:Solution_Name
- name: Build
run: msbuild $env:Solution_Name /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }}
- name: Test
run: '& "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" ${env:Test_Project_Name}\bin\${{ matrix.platform }}\${{ matrix.configuration }}\**\${env:Test_Project_Name}.dll'