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

Update release GitHub workflow action #1847

Merged
merged 4 commits into from
Apr 3, 2024
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
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ jobs:
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Build the plugins
run: make plugins
run: |
swift build --configuration=release --product protoc-gen-swift
cp ./.build/release/protoc-gen-swift .
swift build --configuration=release --product protoc-gen-grpc-swift
cp ./.build/release/protoc-gen-grpc-swift .

- name: Zip the plugins
run: |
Expand Down
10 changes: 8 additions & 2 deletions Sources/GRPC/Docs.docc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,14 @@ dependencies: [
Binary releases of `protoc`, the Protocol Buffer Compiler, are available on
[GitHub][protobuf-releases].

To build the plugins, run `make plugins` in the main directory. This uses the
Swift Package Manager to build both of the necessary plugins:
To build the plugins, run the following in the main directory:

```sh
$ swift build --product protoc-gen-swift
$ swift build --product protoc-gen-grpc-swift
```

This uses the Swift Package Manager to build both of the necessary plugins:
`protoc-gen-swift`, which generates Protocol Buffer support code and
`protoc-gen-grpc-swift`, which generates gRPC interface code.

Expand Down
9 changes: 1 addition & 8 deletions docs/plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,7 @@ compiler `protoc` to generate classes for clients and services.

## Building the Plugin

The `protoc-gen-grpc-swift` plugin can be built by using the Makefile in the
top-level directory:

```sh
$ make plugins
```

The Swift Package Manager may also be invoked directly to build the plugin:
The `protoc-gen-grpc-swift` plugin can be built using the Swift Package Manager:

```sh
$ swift build --product protoc-gen-grpc-swift
Expand Down
Loading