diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index f82a778..9dca056 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -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/setup-msbuild@v1.0.2 - + 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