Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add nanopb support #180

Merged
merged 1 commit into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ jobs:
PROTOC_GEN_GQL_VERSION=${{ env.PROTOC_GEN_GQL_VERSION }}
PROTOC_GEN_JSONSCHEMA_VERSION=${{ env.PROTOC_GEN_JSONSCHEMA_VERSION }}
PROTOC_GEN_LINT_VERSION=${{ env.PROTOC_GEN_LINT_VERSION }}
PROTOC_GEN_NANOPB_VERSION=${{ env.PROTOC_GEN_NANOPB_VERSION }}
PROTOC_GEN_RUST_VERSION=${{ env.PROTOC_GEN_RUST_VERSION }}
PROTOC_GEN_SCALA_VERSION=${{ env.PROTOC_GEN_SCALA_VERSION }}
PROTOC_GEN_TS_VERSION=${{ env.PROTOC_GEN_TS_VERSION }}
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,13 @@ RUN apk add --no-cache \
grpc-plugins \
protobuf \
protobuf-dev \
protobuf-c-compiler
protobuf-c-compiler \
python3
COPY --from=upx /out/ /
COPY --from=protoc_gen_ts /out/ /
COPY --from=protoc_gen_dart /out/ /
COPY --from=protoc_gen_dart /runtime/ /
RUN python3 -m ensurepip && pip3 install --no-cache nanopb
RUN ln -s /usr/bin/grpc_cpp_plugin /usr/bin/protoc-gen-grpc-cpp
RUN ln -s /usr/bin/grpc_csharp_plugin /usr/bin/protoc-gen-grpc-csharp
RUN ln -s /usr/bin/grpc_node_plugin /usr/bin/protoc-gen-grpc-js
Expand Down Expand Up @@ -468,6 +470,7 @@ RUN protoc-wrapper \
--java_out=/test \
--jsonschema_out=/test \
--lint_out=/test \
--nanopb_out=/test \
--php_out=/test \
--python_out=/test \
--ruby_out=/test \
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ It started out as https://github.com/znly/docker-protobuf fork, but grew into a
- [infobloxopen/protoc-gen-gorm](https://github.com/infobloxopen/protoc-gen-gorm)
- [moul/protoc-gen-gotemplate](https://github.com/moul/protoc-gen-gotemplate)
- [mwitkow/go-proto-validators](https://github.com/mwitkow/go-proto-validators)
- [nanopb/nanopb](https://github.com/nanopb/nanopb)
- [protobuf-c/protobuf-c](https://github.com/protobuf-c/protobuf-c)
- [pseudomuto/protoc-gen-doc](https://github.com/pseudomuto/protoc-gen-doc)
- [scalapb/scalapb](https://github.com/scalapb/scalapb)
Expand Down
1 change: 1 addition & 0 deletions deps.list
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ PROTOC_GEN_GQL_VERSION=v0.8.0
PROTOC_GEN_JS_VERSION=v3.21.2
PROTOC_GEN_JSONSCHEMA_VERSION=1.4.0
PROTOC_GEN_LINT_VERSION=v0.3.0
PROTOC_GEN_NANOPB_VERSION=0.4.7
PROTOC_GEN_RUST_VERSION=v3.2.0
PROTOC_GEN_SCALA_VERSION=v0.11.13
PROTOC_GEN_TS_VERSION=0.15.0
Expand Down