-
Notifications
You must be signed in to change notification settings - Fork 558
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[main] Update dependencies from dotnet/arcade (#5646)
[main] Update dependencies from dotnet/arcade
- Loading branch information
1 parent
3e24c11
commit 18e46f2
Showing
9 changed files
with
68 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
eng/common/core-templates/steps/source-index-stage1-publish.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
parameters: | ||
sourceIndexUploadPackageVersion: 2.0.0-20240522.1 | ||
sourceIndexProcessBinlogPackageVersion: 1.0.1-20240522.1 | ||
sourceIndexPackageSource: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json | ||
binlogPath: artifacts/log/Debug/Build.binlog | ||
|
||
steps: | ||
- task: UseDotNet@2 | ||
displayName: "Source Index: Use .NET 8 SDK" | ||
inputs: | ||
packageType: sdk | ||
version: 8.0.x | ||
installationPath: $(Agent.TempDirectory)/dotnet | ||
workingDirectory: $(Agent.TempDirectory) | ||
|
||
- script: | | ||
$(Agent.TempDirectory)/dotnet/dotnet tool install BinLogToSln --version ${{parameters.sourceIndexProcessBinlogPackageVersion}} --add-source ${{parameters.SourceIndexPackageSource}} --tool-path $(Agent.TempDirectory)/.source-index/tools | ||
$(Agent.TempDirectory)/dotnet/dotnet tool install UploadIndexStage1 --version ${{parameters.sourceIndexUploadPackageVersion}} --add-source ${{parameters.SourceIndexPackageSource}} --tool-path $(Agent.TempDirectory)/.source-index/tools | ||
displayName: "Source Index: Download netsourceindex Tools" | ||
# Set working directory to temp directory so 'dotnet' doesn't try to use global.json and use the repo's sdk. | ||
workingDirectory: $(Agent.TempDirectory) | ||
|
||
- script: $(Agent.TempDirectory)/.source-index/tools/BinLogToSln -i ${{parameters.BinlogPath}} -r $(Build.SourcesDirectory) -n $(Build.Repository.Name) -o .source-index/stage1output | ||
displayName: "Source Index: Process Binlog into indexable sln" | ||
|
||
- ${{ if and(ne(parameters.runAsPublic, 'true'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: | ||
- task: AzureCLI@2 | ||
displayName: "Source Index: Upload Source Index stage1 artifacts to Azure" | ||
inputs: | ||
azureSubscription: 'SourceDotNet Stage1 Publish' | ||
addSpnToEnvironment: true | ||
scriptType: 'ps' | ||
scriptLocation: 'inlineScript' | ||
inlineScript: | | ||
$(Agent.TempDirectory)/.source-index/tools/UploadIndexStage1 -i .source-index/stage1output -n $(Build.Repository.Name) -s netsourceindexstage1 -b stage1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
eng/common/templates-official/steps/source-index-stage1-publish.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
steps: | ||
- template: /eng/common/core-templates/steps/source-index-stage1-publish.yml | ||
parameters: | ||
is1ESPipeline: true | ||
|
||
${{ each parameter in parameters }}: | ||
${{ parameter.key }}: ${{ parameter.value }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
steps: | ||
- template: /eng/common/core-templates/steps/source-index-stage1-publish.yml | ||
parameters: | ||
is1ESPipeline: false | ||
|
||
${{ each parameter in parameters }}: | ||
${{ parameter.key }}: ${{ parameter.value }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters