Skip to content

Commit

Permalink
Update release workflow to build the reporter before packaging tools
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Sep 16, 2024
1 parent 37e9dc6 commit a2d6c79
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,16 @@ jobs:
# Copy the compiler to the expected location to avoid rebuilding it when creating the NuGet packages
New-Item -ItemType Directory -Path "$env:GITHUB_WORKSPACE\tools\slicec-cs\target\release"
Copy-Item "slicec-cs-x86_64-pc-windows-msvc\slicec-cs.exe" -Destination "$env:GITHUB_WORKSPACE\tools\slicec-cs\target\release"
- name: Build IceRPC Tools
working-directory: tools
run: dotnet build --configuration Release
env:
SLICEC_CS_STAGING_PATH: ${{ github.workspace }}\tools\slicec-cs\staging
- name: Build IceRPC
run: dotnet build --configuration Release --output .
- name: Pack IceRPC Tools
working-directory: tools
run: |
dotnet build --configuration Release
dotnet pack --configuration Release --output ../
run: dotnet pack --configuration Release --output ../
env:
SLICEC_CS_STAGING_PATH: ${{ github.workspace }}\tools\slicec-cs\staging
- name: Pack IceRPC
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ publish()
global_packages=$(dotnet nuget locals -l global-packages)
global_packages=${global_packages/global-packages: /""}
run_command rm "-rf" "$global_packages/zeroc.slice/$version" "$global_packages/icerpc/$version" "$global_packages"/icerpc.*/"$version"
run_command dotnet "nuget" "push" "tools/**/$dotnet_config/*.$version.nupkg" "--source" "$global_packages"
run_command dotnet "nuget" "push" "tools/**/$dotnet_config/*.$version*.nupkg" "--source" "$global_packages"
run_command dotnet "nuget" "push" "src/**/$dotnet_config/*.$version.nupkg" "--source" "$global_packages"
}

Expand Down
2 changes: 2 additions & 0 deletions build/IceRpc.Version.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<PropertyGroup>
<!-- The version of all assembly files built in this repository -->
<Version Condition="'$(Version)' == ''">0.4.0</Version>
<IceRpcProtobufToolsVersion>0.4.0.1</IceRpcProtobufToolsVersion>
<IceRpcSliceToolsVersion>0.4.0.1</IceRpcSliceToolsVersion>
<!-- The Protobuf version used by IceRpc.Protobuf -->
<ProtobufVersion>28.1</ProtobufVersion>
<NuGetProtobufVersion>3.$(ProtobufVersion)</NuGetProtobufVersion>
Expand Down
1 change: 1 addition & 0 deletions tools/IceRpc.Protobuf.Tools/IceRpc.Protobuf.Tools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<IncludeBuildOutput>false</IncludeBuildOutput>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<NoWarn>NU5100</NoWarn>
<Version>$(IceRpcProtobufToolsVersion)</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Build.Framework" Version="17.11.4" />
Expand Down
1 change: 1 addition & 0 deletions tools/IceRpc.Slice.Tools/IceRpc.Slice.Tools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<IncludeBuildOutput>false</IncludeBuildOutput>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<NoWarn>NU5100</NoWarn>
<Version>$(IceRpcSliceToolsVersion)</Version>
<RustConfiguration Condition="'$(Configuration)' == 'Release'">release</RustConfiguration>
<RustConfiguration Condition="'$(Configuration)' == 'Debug'">debug</RustConfiguration>
<SliceCompilerExe Condition="'$(OS)' == 'Windows_NT'">slicec-cs.exe</SliceCompilerExe>
Expand Down

0 comments on commit a2d6c79

Please sign in to comment.