Skip to content

Commit 0b5b062

Browse files
authored
[ci] Enable source index (#26557)
* Can we bump this sdk * Enable source index fix variables Update azure-pipelines-internal.yml Update NuGet.config try pass this one Update NuGet.config enable source index Update build-test-pack.yml Update build-test-pack.yml try enable source index try this again no warn and bin log try fix binlog * Update global.json * Update NuGet.config
1 parent 593f34d commit 0b5b062

5 files changed

+19
-17
lines changed

NuGet.config

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
<add key="skiasharp" value="https://pkgs.dev.azure.com/xamarin/public/_packaging/SkiaSharp/nuget/v3/index.json" />
1414
<add key="dotnet-libraries" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-libraries/nuget/v3/index.json" />
1515
<add key="dotnet-libraries-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-libraries-transport/nuget/v3/index.json" />
16-
<!-- Added manually for .NET 8 MAUI -->-
17-
<add key="darc-pub-dotnet-maui-a33a875e" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-maui-a33a875e/nuget/v3/index.json" /></packageSources>
16+
<!-- Added manually for .NET 8 MAUI -->
17+
<add key="darc-pub-dotnet-maui-a33a875e" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-maui-a33a875e/nuget/v3/index.json" />
18+
</packageSources>
1819
<activePackageSource>
1920
<add key="All" value="(Aggregate source)" />
2021
</activePackageSource>

eng/pipelines/azure-pipelines-internal.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ variables:
8181

8282
parameters:
8383
- name: pushMauiPackagesToMaestro
84+
type: boolean
8485
default: true
8586

86-
- name: provisionatorChannel
87-
displayName: 'Provisionator channel'
88-
type: string
89-
default: 'latest' # Support for launching a build against a Provisionator PR (e.g., pr/[github-account-name]/[pr-number]) as a means to test in-progress Provisionator changes
87+
- name: enableSourceIndex
88+
type: boolean
89+
default: true
9090

9191
- name: VM_IMAGE_HOST
9292
type: object
@@ -107,6 +107,7 @@ parameters:
107107
artifactsPath: '$(Build.ArtifactStagingDirectory)'
108108

109109
- name: Skip1ESComplianceTasks
110+
type: boolean
110111
default: false
111112

112113
resources:
@@ -151,9 +152,12 @@ extends:
151152
enablePublishBuildAssets: true
152153
enableTelemetry: true
153154
enableSourceBuild: false
154-
enableSourceIndex: false
155+
enableSourceIndex: ${{ parameters.enableSourceIndex }}
156+
sourceIndexParams:
157+
sourceIndexBuildCommand: build.cmd -restore -build -ci -warnAsError 0 /bl:$(Build.Arcade.LogsPath)sourceIndexBuild.binlog /p:OfficialBuildId=$(_BuildOfficalId) /p:_SkipUpdateBuildNumber=true
158+
binlogPath: $(Build.Arcade.LogsPath)sourceIndexBuild.binlog
155159
publishAssetsImmediately: true
156-
# Publish build logs
160+
# Publish build logs
157161
enablePublishBuildArtifacts: true
158162
# Publish test logs
159163
enablePublishTestResults: true

eng/pipelines/azure-pipelines-public.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,8 @@ variables:
8080

8181
parameters:
8282
- name: pushMauiPackagesToMaestro
83-
default: true
84-
85-
- name: provisionatorChannel
86-
displayName: 'Provisionator channel'
87-
type: string
88-
default: 'latest'
83+
type: boolean
84+
default: true
8985

9086
- name: VM_IMAGE_HOST
9187
type: object
@@ -106,6 +102,7 @@ parameters:
106102
artifactsPath: '$(Build.ArtifactStagingDirectory)'
107103

108104
- name: Skip1ESComplianceTasks
105+
type: boolean
109106
default: true
110107

111108
stages:

eng/pipelines/common/build-test-pack.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ steps:
127127
- ${{ if and(eq(parameters.isWindows, 'true'), ne(parameters.runAsPublic, 'true') ) }}:
128128

129129
- script: ${{ parameters.buildScript }}
130-
-pack
130+
-restore -pack
131131
-sign $(_SignArgs)
132132
-publish $(_PublishArgs)
133133
-configuration $(_BuildConfig)
134-
/bl:${{ parameters.repoLogPath }}/pack.binlog
134+
/bl:${{ parameters.repoLogPath }}pack.binlog
135135
$(_OfficialBuildIdArgs)
136136
displayName: Pack, Sign & Publish
137137

global.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"tools": {
3-
"dotnet": "9.0.100"
3+
"dotnet": "9.0.101"
44
},
55
"msbuild-sdks": {
66
"MSBuild.Sdk.Extras": "3.0.44",

0 commit comments

Comments
 (0)