Skip to content

Commit 4e07737

Browse files
authored
Enable signing on all except pgo (#44306)
1 parent 41c6d4b commit 4e07737

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

eng/pipelines/templates/jobs/vmr-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ parameters:
4848
- name: sign
4949
displayName: True when build output should be signed
5050
type: boolean
51-
default: false
51+
default: true
5252

5353
# Overrides the rid that is produced by the build.
5454
- name: targetRid
@@ -282,7 +282,7 @@ jobs:
282282

283283
- script: |
284284
set extraBuildArguments=
285-
if /I '${{ parameters.sign }}'=='True' set extraBuildArguments=%extraBuildArguments% -sign
285+
if /I '${{ parameters.sign }}'=='True' IF /I NOT '${{ parameters.buildSourceOnly }}' == 'True' set extraBuildArguments=%extraBuildArguments% -sign
286286
if /I '${{ parameters.useDevVersions }}'=='True' set extraBuildArguments=%extraBuildArguments% -dev
287287
set extraBuildProperties=
288288
if not [${{ parameters.buildPass }}]==[] set extraBuildProperties=%extraBuildProperties% /p:DotNetBuildPass=${{ parameters.buildPass }}
@@ -367,7 +367,7 @@ jobs:
367367
customBuildArgs="$customBuildArgs --dev"
368368
fi
369369
370-
if [[ '${{ parameters.sign }}' == 'True' ]]; then
370+
if [[ '${{ parameters.sign }}' == 'True' && '${{ parameters.buildSourceOnly }}' != 'True' ]]; then
371371
customBuildArgs="$customBuildArgs --sign"
372372
fi
373373

eng/pipelines/templates/stages/vmr-build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ stages:
8080
- template: ../variables/vmr-build.yml
8181
parameters:
8282
vmrBranch: ${{ parameters.vmrBranch }}
83+
sign: false
8384

8485
jobs:
8586

@@ -370,7 +371,6 @@ stages:
370371
targetArchitecture: x64
371372
useDevVersions: true # Use dev versions for CI validation of the experience. If we decide to ship assets from this leg, then we should remove this option.
372373
runTests: false # Temporarily do not run tests. The nuget comparison fails for some non-obvious reason and needs further investigation. Mostly, I'm not sure why it ever passed. https://github.com/dotnet/sdk/issues/42920
373-
sign: true
374374

375375
- template: ../jobs/vmr-build.yml
376376
parameters:
@@ -382,7 +382,6 @@ stages:
382382
container: ${{ variables.ubuntuContainer }}
383383
targetOS: linux
384384
targetArchitecture: x64
385-
sign: true
386385

387386
- template: ../jobs/vmr-build.yml
388387
parameters:
@@ -393,7 +392,6 @@ stages:
393392
pool: ${{ parameters.pool_Windows }}
394393
targetOS: windows
395394
targetArchitecture: x64
396-
sign: true
397395

398396
- template: ../jobs/vmr-build.yml
399397
parameters:
@@ -406,7 +404,6 @@ stages:
406404
targetOS: android
407405
targetArchitecture: arm64
408406
runTests: false
409-
sign: true
410407

411408
- template: ../jobs/vmr-build.yml
412409
parameters:
@@ -420,7 +417,6 @@ stages:
420417
targetOS: browser
421418
targetArchitecture: wasm
422419
runTests: false
423-
sign: true
424420

425421
- template: ../jobs/vmr-build.yml
426422
parameters:
@@ -432,7 +428,6 @@ stages:
432428
targetOS: iossimulator
433429
targetArchitecture: arm64
434430
runTests: false
435-
sign: true
436431

437432
### Additional jobs for full build ###
438433
- ${{ if in(parameters.scope, 'full') }}:
@@ -773,6 +768,7 @@ stages:
773768
targetArchitecture: x64
774769
extraProperties: /p:PgoInstrument=true
775770
runTests: false
771+
sign: false
776772

777773
- template: ../jobs/vmr-build.yml
778774
parameters:
@@ -867,6 +863,7 @@ stages:
867863
targetArchitecture: arm64
868864
extraProperties: /p:PgoInstrument=true
869865
runTests: false
866+
sign: false
870867

871868
- template: ../jobs/vmr-build.yml
872869
parameters:
@@ -1075,6 +1072,7 @@ stages:
10751072
targetArchitecture: x64
10761073
extraProperties: /p:PgoInstrument=true
10771074
runTests: false
1075+
sign: false
10781076

10791077
- template: ../jobs/vmr-build.yml
10801078
parameters:
@@ -1087,6 +1085,7 @@ stages:
10871085
targetArchitecture: x86
10881086
extraProperties: /p:PgoInstrument=true
10891087
runTests: false
1088+
sign: false
10901089

10911090
- template: ../jobs/vmr-build.yml
10921091
parameters:
@@ -1099,6 +1098,7 @@ stages:
10991098
targetArchitecture: arm64
11001099
extraProperties: /p:PgoInstrument=true
11011100
runTests: false
1101+
sign: false
11021102

11031103
# Build Pass 2 verticals
11041104

0 commit comments

Comments
 (0)