Skip to content

Commit 7a1078b

Browse files
authored
[CI] Publish binaries for Aspire.Cli (#9695)
* [CI] Generate and publish Cli as single file executable - This generates zip files for non-linux platforms. And `.tar.gz` for linux. - And uses Arcade blob publishing to publish the generated archives * Use Microsoft.DotNet.Build.Tasks.Archives to create archives * clipack: Use Microsoft.Build.NoTargets * add Aspire.Cli.linux-musl-x64.csproj * cleanup * Fix aspire.cli linux-musl build
1 parent 1eaad62 commit 7a1078b

13 files changed

+114
-3
lines changed

Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
<PackageVersion Include="Microsoft.DotNet.Build.Tasks.Workloads" Version="8.0.0-beta.23564.4" />
126126
<PackageVersion Include="Microsoft.Signed.Wix" Version="$(MicrosoftSignedWixVersion)" />
127127
<PackageVersion Include="Microsoft.DotNet.Build.Tasks.Installers" Version="8.0.0-beta.23564.4" />
128+
<PackageVersion Include="Microsoft.DotNet.Build.Tasks.Archives" Version="8.0.0-beta.23564.4" />
128129
<PackageVersion Include="Microsoft.DotNet.GenAPI.Task" Version="9.0.103-servicing.25065.25" />
129130
<PackageVersion Include="System.CommandLine" Version="2.0.0-beta5.25256.109" />
130131
<!-- playground apps dependencies -->

eng/Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<ProjectToBuild Include="$(RepoRoot)src\**\*.csproj" Exclude="$(RepoRoot)src\Aspire.ProjectTemplates\templates\**\*.csproj" />
44
<ProjectToBuild Include="$(RepoRoot)eng\dcppack\**\*.csproj" />
55
<ProjectToBuild Include="$(RepoRoot)eng\dashboardpack\**\*.csproj" />
6+
<ProjectToBuild Include="$(RepoRoot)eng\clipack\**\*.csproj" />
67
<ProjectToBuild Include="$(RepoRoot)playground\**\*.csproj" />
78

89
<!-- `$(SkipTestProjects)` allows skipping test projects from being

eng/Publishing.props

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@
2323
<_InstallersToPublish Include="$(ArtifactsDir)**\*.wixpack.zip" Condition="'$(PostBuildSign)' == 'true'" />
2424
<_InstallerManifestFilesToPublish Include="$(ArtifactsDir)VSSetup\$(Configuration)\Insertion\**\*.zip" />
2525
<_DashboardFilesToPublish Include="$(DashboardPublishedArtifactsOutputDir)\**\*.zip" />
26+
<_CliFilesToPublish Include="$(ArtifactsShippingPackagesDir)\aspire-cli-*" />
2627
</ItemGroup>
2728

2829
<Target Name="_PublishBlobItems">
29-
<!--
30+
<!--
3031
For blob items for the Dashboard, we want to make sure that the version we get back is not stable, even when the repo is producing stable versions.
3132
This is because we want to be able to re-spin the build if necessary without hitting issues of blob items clashing with each other. For this reason,
3233
We will pass SuppressFinalPackageVersion as true when fetching the package version so that we get back a version with a prerelease suffix.
@@ -54,6 +55,11 @@
5455
<PublishFlatContainer>true</PublishFlatContainer>
5556
<RelativeBlobPath>$(_UploadPathRoot)/$(_PackageVersion)/%(Filename)%(Extension)</RelativeBlobPath>
5657
</ItemsToPushToBlobFeed>
58+
<ItemsToPushToBlobFeed Include="@(_CliFilesToPublish)">
59+
<IsShipping>false</IsShipping>
60+
<PublishFlatContainer>true</PublishFlatContainer>
61+
<RelativeBlobPath>$(_UploadPathRoot)/$(_PackageVersion)/%(Filename)%(Extension)</RelativeBlobPath>
62+
</ItemsToPushToBlobFeed>
5763
</ItemGroup>
5864
</Target>
59-
</Project>
65+
</Project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project>
2+
<PropertyGroup>
3+
<CliRuntime>linux-arm64</CliRuntime>
4+
<CliPlatformType>Unix</CliPlatformType>
5+
</PropertyGroup>
6+
7+
<Import Project="Common.projitems" />
8+
9+
</Project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project>
2+
<PropertyGroup>
3+
<CliRuntime>linux-musl-x64</CliRuntime>
4+
<CliPlatformType>Unix</CliPlatformType>
5+
</PropertyGroup>
6+
7+
<Import Project="Common.projitems" />
8+
9+
</Project>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project>
2+
<PropertyGroup>
3+
<CliRuntime>linux-x64</CliRuntime>
4+
<CliPlatformType>Unix</CliPlatformType>
5+
</PropertyGroup>
6+
7+
<Import Project="Common.projitems" />
8+
</Project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project>
2+
<PropertyGroup>
3+
<CliRuntime>osx-arm64</CliRuntime>
4+
<CliPlatformType>Unix</CliPlatformType>
5+
</PropertyGroup>
6+
7+
<Import Project="Common.projitems" />
8+
9+
</Project>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project>
2+
<PropertyGroup>
3+
<CliRuntime>osx-x64</CliRuntime>
4+
<CliPlatformType>Unix</CliPlatformType>
5+
</PropertyGroup>
6+
7+
<Import Project="Common.projitems" />
8+
</Project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project>
2+
<PropertyGroup>
3+
<CliRuntime>win-arm64</CliRuntime>
4+
<CliPlatformType>Windows</CliPlatformType>
5+
</PropertyGroup>
6+
7+
<Import Project="Common.projitems" />
8+
9+
</Project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project>
2+
<PropertyGroup>
3+
<CliRuntime>win-x64</CliRuntime>
4+
<CliPlatformType>Windows</CliPlatformType>
5+
</PropertyGroup>
6+
7+
<Import Project="Common.projitems" />
8+
9+
</Project>

0 commit comments

Comments
 (0)