-
Notifications
You must be signed in to change notification settings - Fork 186
48 lines (38 loc) · 1.06 KB
/
build_dotnet.yml
File metadata and controls
48 lines (38 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: .NET Core Desktop
on:
# push:
# branches: [ "Development" ]
pull_request:
branches: [ "Development" ]
types: [opened, synchronize]
env:
Solution: src/LogExpert.sln
Test_Project: src/LogExpert.Tests/LogExpert.Tests.csproj
jobs:
build:
permissions:
contents: read
strategy:
fail-fast: false
matrix:
configuration: [Debug, Release]
runs-on: windows-latest
name: Build Application - ${{ matrix.configuration }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Build application
run: |
dotnet build ${{ env.Solution }} --nologo -v quiet -c ${{ matrix.configuration }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Snapshot-${{ matrix.configuration }}
path: bin/${{ matrix.configuration }}
retention-days: 7