-
Notifications
You must be signed in to change notification settings - Fork 519
86 lines (68 loc) · 2.82 KB
/
BuildSuccess_Check.yaml
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
# The name of the job, which will be displayed for the status check in PR.
name: Build success check
# Controls when the action will run.
# Below triggers the workflow on pull requests to `main`.
on:
pull_request:
branches:
- main
# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel.
jobs:
# MAUI Build
build-maui:
runs-on: windows-latest
name: MAUI Build
steps:
- name: Clone .NET Samples
uses: actions/checkout@v1
- name: Setup Visual Studio Command Prompt
uses: microsoft/[email protected]
- name: Build MAUI (Windows)
run: |
msbuild /restore /t:Build src/MAUI/ArcGIS.Samples.MAUI.sln /p:Configuration=Release /p:CentralPackageManagementEnabled=true /p:TargetFramework=net8.0-windows10.0.19041.0 /p:RuntimeIdentifier=win10-x64 /p:RuntimeIdentifierOverride=win10-x64 /p:UseRidGraph=true
- name: Build MAUI (Android)
run: |
msbuild /restore /t:Build src/MAUI/ArcGIS.Samples.MAUI.sln /p:Configuration=Release /p:CentralPackageManagementEnabled=true /p:TargetFramework=net8.0-android
- name: Build MAUI (iOS)
run: |
msbuild /restore /t:Build src/MAUI/ArcGIS.Samples.MAUI.sln /p:Configuration=Release /p:CentralPackageManagementEnabled=true /p:TargetFramework=net8.0-ios
- name: Build MAUI (Mac)
run: |
msbuild /restore /t:Build src/MAUI/ArcGIS.Samples.MAUI.sln /p:Configuration=Release /p:CentralPackageManagementEnabled=true /p:TargetFramework=net8.0-maccatalyst
# WPF .NET Build
build-wpf:
runs-on: windows-latest
name: WPF .NET Build
steps:
- name: Clone .NET Samples
uses: actions/checkout@v1
- name: Setup Visual Studio Command Prompt
uses: microsoft/[email protected]
- name: Build WPF .NET
run: |
msbuild /restore /t:Build src/WPF/ArcGIS.WPF.Viewer.Net.sln /p:Configuration=Release /p:CentralPackageManagementEnabled=true
# WPF .NET Framework Build
build-wpf-framework:
runs-on: windows-latest
name: WPF .NET Framework Build
steps:
- name: Clone .NET Samples
uses: actions/checkout@v1
- name: Setup Visual Studio Command Prompt
uses: microsoft/[email protected]
- name: Build WPF .NETFramework
run: |
msbuild /restore /t:Build src/WPF/ArcGIS.WPF.Viewer.Net.sln /p:TargetFramework=net472 /p:Configuration=Release /p:CentralPackageManagementEnabled=true
# WinUI Build
build-winUI:
runs-on: windows-latest
name: WinUI Build
steps:
- name: Clone .NET Samples
uses: actions/checkout@v1
- name: Setup Visual Studio Command Prompt
uses: microsoft/[email protected]
- name: Build WinUI
run: |
msbuild /restore /t:Build src/WinUI/ArcGIS.WinUI.Viewer.sln /p:Configuration=Release /p:CentralPackageManagementEnabled=true