-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
168 lines (152 loc) · 5.25 KB
/
ci.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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
name: Prism CI
on:
push:
branches:
- master
- release/stable/**
paths:
- .github/workflows/ci.yml
- Directory.Build.props
- Directory.Build.targets
- Directory.Packages.props
- xunit.runner.json
- 'src/**'
pull_request:
branches:
- master
- release/stable/**
paths:
- .github/workflows/ci.yml
workflow_dispatch:
jobs:
build-prism-core:
uses: avantipoint/workflow-templates/.github/workflows/dotnet-build.yml@v1
with:
name: Build Prism.Core
solution-path: PrismLibrary_Core.slnf
code-sign: true
artifact-name: Core
secrets:
codeSignKeyVault: ${{ secrets.CodeSignKeyVault }}
codeSignClientId: ${{ secrets.CodeSignClientId }}
codeSignTenantId: ${{ secrets.CodeSignTenantId }}
codeSignClientSecret: ${{ secrets.CodeSignClientSecret }}
codeSignCertificate: ${{ secrets.CodeSignCertificate }}
build-prism-wpf:
uses: avantipoint/workflow-templates/.github/workflows/dotnet-build.yml@v1
with:
name: Build Prism.Wpf
solution-path: PrismLibrary_Wpf.slnf
code-sign: true
artifact-name: Wpf
secrets:
codeSignKeyVault: ${{ secrets.CodeSignKeyVault }}
codeSignClientId: ${{ secrets.CodeSignClientId }}
codeSignTenantId: ${{ secrets.CodeSignTenantId }}
codeSignClientSecret: ${{ secrets.CodeSignClientSecret }}
codeSignCertificate: ${{ secrets.CodeSignCertificate }}
build-prism-forms:
uses: avantipoint/workflow-templates/.github/workflows/msbuild-build.yml@v1
with:
name: Build Prism.Forms
solution-path: PrismLibrary_Forms.slnf
code-sign: true
artifact-name: Forms
jdk-version: 13
secrets:
codeSignKeyVault: ${{ secrets.CodeSignKeyVault }}
codeSignClientId: ${{ secrets.CodeSignClientId }}
codeSignTenantId: ${{ secrets.CodeSignTenantId }}
codeSignClientSecret: ${{ secrets.CodeSignClientSecret }}
codeSignCertificate: ${{ secrets.CodeSignCertificate }}
build-prism-uno:
uses: avantipoint/workflow-templates/.github/workflows/msbuild-build.yml@v1
with:
name: Build Prism.Uno
solution-path: PrismLibrary_Uno.slnf
windows-sdk-version: 18362
dotnet-version: 8.0.300
install-workload: ios android macos maccatalyst wasm-tools
uno-check: false
uno-check-version: 1.24.0
uno-check-parameters: '--skip xcode --skip gtk3 --skip vswin --skip androidemulator --skip androidsdk --skip vsmac --skip dotnetnewunotemplates'
run-tests: false
code-sign: true
artifact-name: Uno
secrets:
codeSignKeyVault: ${{ secrets.CodeSignKeyVault }}
codeSignClientId: ${{ secrets.CodeSignClientId }}
codeSignTenantId: ${{ secrets.CodeSignTenantId }}
codeSignClientSecret: ${{ secrets.CodeSignClientSecret }}
codeSignCertificate: ${{ secrets.CodeSignCertificate }}
build-prism-maui:
uses: avantipoint/workflow-templates/.github/workflows/dotnet-build.yml@v1
with:
name: Build Prism.Maui
solution-path: PrismLibrary_Maui.slnf
install-workload: maui maui-tizen
code-sign: true
artifact-name: Maui
secrets:
codeSignKeyVault: ${{ secrets.CodeSignKeyVault }}
codeSignClientId: ${{ secrets.CodeSignClientId }}
codeSignTenantId: ${{ secrets.CodeSignTenantId }}
codeSignClientSecret: ${{ secrets.CodeSignClientSecret }}
codeSignCertificate: ${{ secrets.CodeSignCertificate }}
generate-consolidated-artifacts:
needs: [build-prism-core, build-prism-wpf, build-prism-forms, build-prism-uno, build-prism-maui]
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download Core
uses: actions/download-artifact@v3
with:
name: Core
path: artifacts\Core
- name: Download Wpf
uses: actions/download-artifact@v3
with:
name: Wpf
path: artifacts\Wpf
- name: Download Forms
uses: actions/download-artifact@v3
with:
name: Forms
path: artifacts\Forms
- name: Download Uno
uses: actions/download-artifact@v3
with:
name: Uno
path: artifacts\Uno
- name: Download Maui
uses: actions/download-artifact@v3
with:
name: Maui
path: artifacts\Maui
- name: Consolidate Artifacts
run: build\consolidate-artifacts.ps1
shell: powershell
- name: Upload Consolidated NuGets
uses: actions/upload-artifact@v3
with:
name: NuGet
path: .\artifacts\nuget
deploy-internal:
uses: avantipoint/workflow-templates/.github/workflows/deploy-nuget.yml@v1
needs: generate-consolidated-artifacts
if: ${{ github.event_name == 'push' }}
with:
name: Deploy Internal
secrets:
feedUrl: ${{ secrets.IN_HOUSE_NUGET_FEED }}
apiKey: ${{ secrets.IN_HOUSE_API_KEY }}
deploy-commercial-plus:
uses: avantipoint/workflow-templates/.github/workflows/deploy-nuget.yml@v1
needs: generate-consolidated-artifacts
if: ${{ github.event_name == 'push' }}
with:
name: Deploy Commercial Plus
secrets:
feedUrl: ${{ secrets.PRISM_NUGET_FEED }}
apiKey: ${{ secrets.PRISM_NUGET_TOKEN }}