Skip to content

Commit

Permalink
Update dotnet-desktop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ledrunning authored Mar 30, 2024
1 parent d19938f commit 038ec2e
Showing 1 changed file with 12 additions and 25 deletions.
37 changes: 12 additions & 25 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,26 @@ name: .NET Desktop
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master

jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]

runs-on: windows-latest

env:
Solution_Name: FaceDetectionApp.sln

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup .NET Framework
uses: actions/setup-dotnet@v1
with:
fetch-depth: 0

- name: Install .NET Framework
uses: microsoft/[email protected]

dotnet-version: '4.8.x'

- name: Restore NuGet packages
run: |
nuget restore $env:Solution_Name -PackagesDirectory $env:UserProfile\.nuget\packages
ls -R $env:UserProfile\.nuget\packages
env:
Configuration: ${{ matrix.configuration }}
run: nuget restore FaceDetectionApp.sln

- name: Build the application
run: msbuild $env:Solution_Name /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
- name: Build solution
run: msbuild FaceDetectionApp.sln /p:Configuration=Release

0 comments on commit 038ec2e

Please sign in to comment.