From a65f4b10039029eb51d401c6152a259d06a169eb Mon Sep 17 00:00:00 2001 From: VisioForge Date: Tue, 16 Jan 2024 17:07:27 +0100 Subject: [PATCH] Create build-net7-winui.yml --- .github/workflows/build-net7-winui.yml | 42 ++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/build-net7-winui.yml diff --git a/.github/workflows/build-net7-winui.yml b/.github/workflows/build-net7-winui.yml new file mode 100644 index 0000000000..ff1db4a189 --- /dev/null +++ b/.github/workflows/build-net7-winui.yml @@ -0,0 +1,42 @@ +name: Build ALL (.Net 7 WinUI) +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + env: + Solution_Name_MP1: "Media Player SDK/VisioForge.MediaPlayer.Demos.CS WinUI.sln" + Solution_Name_VC1: "Video Capture SDK/VisioForge.VideoCapture.Demos.CS WinUI.sln" + + runs-on: windows-2022 + + steps: + - uses: actions/checkout@v2 + + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: | + 7.0.x + + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1.1 + + ## Media Player + + - name: Restore dependencies $env:Solution_Name_MP1 + run: dotnet restore $env:Solution_Name_MP1 + + - name: Build app for release $env:Solution_Name_MP1 + run: msbuild $env:Solution_Name_MP1 -t:rebuild -verbosity:diag -property:Configuration=Release + + ## Video Capture + + - name: Restore dependencies $env:Solution_Name_VC1 + run: dotnet restore $env:Solution_Name_VC1 + + - name: Build app for release $env:Solution_Name_VC1 + run: msbuild $env:Solution_Name_VC1 -t:rebuild -verbosity:diag -property:Configuration=Release