Skip to content

Commit a73cab5

Browse files
authored
Update the signing template (#2932)
1 parent 82e3644 commit a73cab5

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

scripts/SignList.xml

+5
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,9 @@
2121
<!-- <Skip Include="System.*.dll" /> -->
2222
</ItemGroup>
2323

24+
<ItemGroup>
25+
<MacDeveloperSign Include="libSkiaSharp.dylib" />
26+
<MacDeveloperSign Include="libHarfBuzzSharp.dylib" />
27+
</ItemGroup>
28+
2429
</Project>

scripts/azure-pipelines.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ parameters:
4949
displayName: 'Run post-build compliance tasks (such as API Scan and PoliCheck)'
5050
type: boolean
5151
default: false
52+
- name: forceRealSigning
53+
displayName: 'Ignore all logic and force Real signing on binaries'
54+
type: boolean
55+
default: false
5256

5357
variables:
5458
- template: /scripts/azure-pipelines-variables.yml@self
@@ -78,6 +82,7 @@ extends:
7882
buildExternals: ${{ parameters.buildExternals }}
7983
${{ if and(eq(variables['System.TeamProject'], 'devdiv'), ne(variables['System.PullRequest.IsFork'], 'true')) }}:
8084
enableSigning: true
85+
forceRealSigning: ${{ parameters.forceRealSigning }}
8186
${{ if or(parameters.runCompliance, and(eq(variables['Build.Reason'], 'Schedule'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/')))) }}:
8287
sdl:
8388
apiscan:
@@ -107,4 +112,4 @@ extends:
107112
VM_IMAGE_MAC: ${{ parameters.VM_IMAGE_MAC }}
108113
VM_IMAGE_MAC_NATIVE: ${{ parameters.VM_IMAGE_MAC }}
109114
VM_IMAGE_LINUX: ${{ parameters.VM_IMAGE_LINUX }}
110-
VM_IMAGE_LINUX_NATIVE: ${{ parameters.VM_IMAGE_LINUX }}
115+
VM_IMAGE_LINUX_NATIVE: ${{ parameters.VM_IMAGE_LINUX }}

scripts/azure-templates-stages.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ parameters:
3434
- name: enableSigning
3535
type: boolean
3636
default: false
37+
- name: forceRealSigning
38+
type: boolean
39+
default: false
3740

3841
stages:
3942
- stage: prepare
@@ -686,11 +689,11 @@ stages:
686689
displayName: Sign NuGets
687690
dependsOn: package
688691
jobs:
689-
- template: sign-artifacts/jobs/v2.yml@xamarin-templates
692+
- template: sign-artifacts/jobs/v3.yml@xamarin-templates
690693
parameters:
691-
${{ if or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/')) }}:
694+
${{ if or(eq(parameters.forceRealSigning, 'true'), eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/')) }}:
692695
signType: 'Real'
693-
${{ if not(or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))) }}:
696+
${{ else }}:
694697
signType: 'Test'
695698
use1ESTemplate: ${{ parameters.use1ESPipelineTemplates }}
696699
usePipelineArtifactTasks: true

0 commit comments

Comments
 (0)