-
-
Notifications
You must be signed in to change notification settings - Fork 182
59 lines (48 loc) · 1.24 KB
/
ci-build.yml
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
49
50
51
52
53
54
55
56
57
58
59
name: Build
on:
pull_request:
branches: [ main ]
env:
configuration: Release
productNamespacePrefix: "DynamicData"
jobs:
build:
runs-on: windows-2022
outputs:
nbgv: ${{ steps.nbgv.outputs.SemVer2 }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Setup .NET 6/7/8/9
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
9.0.x
- name: NBGV
id: nbgv
uses: dotnet/nbgv@master
with:
setAllVars: true
- name: NuGet Restore
run: dotnet restore DynamicData.sln
working-directory: src
- name: Build
run: dotnet build --no-restore --configuration Release DynamicData.sln
working-directory: src
- name: Run Tests
run: dotnet test --no-restore --configuration Release DynamicData.sln
working-directory: src
- name: Pack
run: dotnet pack --no-restore --configuration Release DynamicData.sln
working-directory: src
- name: Create NuGet Artifacts
uses: actions/upload-artifact@master
with:
name: nuget
path: '**/*.nupkg'