-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (80 loc) · 3.2 KB
/
dotnet-build.yml
File metadata and controls
102 lines (80 loc) · 3.2 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Build Projects
on:
push:
branches:
- master
- develop
tags:
- '*'
pull_request:
jobs:
build_libraries:
strategy:
fail-fast: false
matrix:
runs-on: [macOS-latest, ubuntu-latest, windows-latest]
name: build packages on ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v4.3.3
with:
versionSpec: '6.5.x'
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v4.3.3
- name: Display version information
run: |
echo "FullSemVer: ${{ steps.gitversion.outputs.fullSemVer }}"
echo "BranchName: ${{ steps.gitversion.outputs.branchName }}"
- name: Setup .NET Core
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Restore dependencies
run: dotnet restore romaklayt.DynamicFilter.sln
- name: Build romaklayt.DynamicFilter.Binder.Net
run: dotnet build src/romaklayt.DynamicFilter.Binder.Net/romaklayt.DynamicFilter.Binder.Net.csproj --configuration Release --no-restore
- name: Build romaklayt.DynamicFilter.Common
run: dotnet build src/romaklayt.DynamicFilter.Common/romaklayt.DynamicFilter.Common.csproj --configuration Release --no-restore
- name: Build romaklayt.DynamicFilter.Extensions.EntityFrameworkCore
run: dotnet build src/romaklayt.DynamicFilter.Extensions.EntityFrameworkCore/romaklayt.DynamicFilter.Extensions.EntityFrameworkCore.csproj --configuration Release --no-restore
- name: Build romaklayt.DynamicFilter.Extensions.Async
run: dotnet build src/romaklayt.DynamicFilter.Extensions.Async/romaklayt.DynamicFilter.Extensions.Async.csproj --configuration Release --no-restore
- name: Build romaklayt.DynamicFilter.Parser
run: dotnet build src/romaklayt.DynamicFilter.Parser/romaklayt.DynamicFilter.Parser.csproj --configuration Release --no-restore
build-test-dotnet-api:
strategy:
fail-fast: false
matrix:
runs-on: [macOS-latest, ubuntu-latest, windows-latest]
name: build test dotnet api on ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v4.3.3
with:
versionSpec: '6.5.x'
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v4.3.3
- name: Display version information
run: |
echo "FullSemVer: ${{ steps.gitversion.outputs.fullSemVer }}"
echo "BranchName: ${{ steps.gitversion.outputs.branchName }}"
- name: Setup .NET Core
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Restore dependencies
run: dotnet restore romaklayt.DynamicFilter.sln
- name: Build romaklayt.DynamicFilter.Test.Api
run: dotnet build test/romaklayt.DynamicFilter.Test.Api/romaklayt.DynamicFilter.Test.Api.csproj --configuration Release --no-restore