-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (45 loc) · 1.05 KB
/
build-validation.yml
File metadata and controls
53 lines (45 loc) · 1.05 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: build
on:
push:
branches: [ main ]
paths:
- '**.cs'
- '**.csproj'
- '**.xaml'
- '**.yml'
- '!**.md'
- '!.gitignore'
pull_request:
branches: [ main ]
paths:
- '**.cs'
- '**.csproj'
- '**.xaml'
- '**.yml'
- '!**.md'
- '!.gitignore'
env:
DOTNET_VERSION: '9.0.x' # The .NET SDK version to use
jobs:
build:
name: Build All Projects
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
with:
vs-prerelease: true
- name: Install .NET workloads
shell: pwsh
run: |
dotnet workload install android
dotnet workload install ios
dotnet workload install maccatalyst
dotnet workload install maui
- name: Build .NET MAUI Conference App
run: dotnet build src/Conference.Maui/Conference.Maui.csproj