-
Notifications
You must be signed in to change notification settings - Fork 24
53 lines (46 loc) · 1.54 KB
/
dotnet-build.yml
File metadata and controls
53 lines (46 loc) · 1.54 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
name: .NET Build
on:
push:
branches:
- main
paths:
- 'Part 2 - Project Creation/**'
- 'Part 6 - Deployment/**'
- 'Part 7 - MCP Server Basics/**'
- 'Part 8 - Enhanced MCP Server/**'
pull_request:
branches:
- main
paths:
- 'Part 2 - Project Creation/**'
- 'Part 6 - Deployment/**'
- 'Part 7 - MCP Server Basics/**'
- 'Part 8 - Enhanced MCP Server/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- solution: "Part 2 - Project Creation/GenAiLab/GenAiLab.sln"
dotnet-version: '9.0.x'
- solution: "Part 6 - Deployment/GenAiLab/GenAiLab.sln"
dotnet-version: '9.0.x'
# No solution file exists for MyMcpServer; using project file directly
- solution: "Part 7 - MCP Server Basics/MyMcpServer/MyMcpServer.csproj"
dotnet-version: '9.0.x'
# No solution file exists for ContosoOrdersMcpServer; using project file directly
- solution: "Part 8 - Enhanced MCP Server/ContosoOrdersMcpServer/ContosoOrdersMcpServer.csproj"
dotnet-version: '9.0.x'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore dependencies
run: dotnet restore "${{ matrix.solution }}"
- name: Build solution
run: dotnet build "${{ matrix.solution }}" --no-restore --configuration Release