Skip to content

Commit

Permalink
add Aspire to build flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Thefrank authored and Qstick committed Nov 25, 2023
1 parent 15c6218 commit 413fe31
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ parameters:
displayName: Tag for sdk repository
type: string
default: v8.0.100
- name: aspireBranch
displayName: Tag for aspire repository
type: string
default: v8.0.0-preview.1.23557.2
- name: installerBranch
displayName: Tag for installer repository
type: string
Expand All @@ -36,6 +40,11 @@ resources:
endpoint: Servarr
name: dotnet/sdk
ref: release/8.0.1xx
- repository: aspire
type: github
endpoint: Servarr
name: dotnet/aspire
ref: release/8.0-preview1
- repository: installer
type: github
endpoint: Servarr
Expand Down Expand Up @@ -98,6 +107,27 @@ stages:
pool:
vmImage: 'ubuntu-22.04'

jobs:
- job: Aspire
timeoutInMinutes: 0
steps:
- checkout: self
- checkout: aspire
- bash: |
set -e
git -C aspire checkout ${{ parameters.aspireBranch }}
displayName: Checkout and patch
- bash: |
aspire/build.sh --restore --build --pack --ci /p:OfficialBuildId=20231101.7
displayName: Build SDK
- publish: '$(Build.SourcesDirectory)/aspire/artifacts/packages/Release/Shipping/'
artifact: AspirePackages
displayName: Publish Aspire
- publish: '$(Build.SourcesDirectory)/sdk/artifacts/log'
condition: succeededOrFailed()
artifact: AspireLogs
displayName: Publish Build Logs

jobs:
- job: Sdk
timeoutInMinutes: 0
Expand All @@ -122,7 +152,6 @@ stages:
artifact: SdkLogs
displayName: Publish Build Logs


- stage: AspNetCore
dependsOn: Runtime
pool:
Expand Down Expand Up @@ -195,6 +224,7 @@ stages:
dotnet nuget remove source nuget-build --configfile installer/NuGet.config || true
dotnet nuget add source ../runtime/artifacts/packages/Release/Shipping --name runtime --configfile installer/NuGet.config
dotnet nuget add source ../aspnetcore/artifacts/packages/Release/Shipping --name aspnetcore --configfile installer/NuGet.config
dotnet nuget add source ../aspire/artifacts/packages/Release/Shipping --name aspire --configfile installer/NuGet.config
sed -i '/\/dnceng\/internal\//d' installer/NuGet.config
displayName: Checkout and patch
- task: DownloadPipelineArtifact@2
Expand All @@ -212,6 +242,13 @@ stages:
targetPath: '$(Build.SourcesDirectory)/aspnetcore/artifacts/packages/Release/Shipping'
patterns: |
Microsoft.*.freebsd-x64.*.nupkg
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
artifactName: AspirePackages
targetPath: '$(Build.SourcesDirectory)/aspire/artifacts/packages/Release/Shipping'
patterns: |
Microsoft.*.nupkg
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
Expand Down

0 comments on commit 413fe31

Please sign in to comment.