-
-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (30 loc) · 1.08 KB
/
Copy pathdotnet.yml
File metadata and controls
41 lines (30 loc) · 1.08 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
name: .NET
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
configuration: [ Debug, Release ]
runs-on: windows-latest # For a list of available runner types, refer to https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
env:
Solution: src/WpfMessageBox.sln
Configuration: ${{ matrix.configuration }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Display dotnet version
run: dotnet --version
- name: Restore nugets
run: dotnet restore $env:Solution
- name: Build
run: dotnet build --no-restore --configuration $env:Configuration $env:Solution