Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanLua committed Aug 17, 2023
2 parents e6793ae + 7d65b6d commit 5f28ddd
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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'

0 comments on commit 5f28ddd

Please sign in to comment.