Skip to content

Commit 20e1b08

Browse files
committed
chore(ci): 🔧 add grpc plugin support to build workflow
Updated CI workflow to install grpc-plugins and configure the gRPC plugin path for dotnet publish. This ensures proper generation of gRPC code during build and improves compatibility with gRPC-based projects.
1 parent f053046 commit 20e1b08

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish-builds.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ jobs:
127127
uses: actions/checkout@v6
128128

129129
- name: Install Alpine Prerequisites
130-
run: apk add --no-cache clang build-base zlib-dev protoc
130+
run: apk add --no-cache clang build-base zlib-dev protoc grpc-plugins
131131

132132
- name: Publish Application
133-
run: dotnet publish src/EcoFlow.Mqtt.Api/EcoFlow.Mqtt.Api.csproj -c Release -r ${{ matrix.runtimeIdentifier }} -o ./publish/${{ matrix.runtimeIdentifier }} -p:Protobuf_ProtocFullPath=/usr/bin/protoc
133+
run: dotnet publish src/EcoFlow.Mqtt.Api/EcoFlow.Mqtt.Api.csproj -c Release -r ${{ matrix.runtimeIdentifier }} -o ./publish/${{ matrix.runtimeIdentifier }} -p:Protobuf_ProtocFullPath=/usr/bin/protoc -p:gRPC_PluginFullPath=/usr/bin/grpc_csharp_plugin
134134

135135
- name: Upload Build Artifact
136136
uses: actions/upload-artifact@v6

0 commit comments

Comments
 (0)