-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d19938f
commit 038ec2e
Showing
1 changed file
with
12 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |