Преглед изворни кода

Update `release` GitHub workflow action (#1847)

* Update GitHub release workflow

* Update docs to remove references to `make plugins`

* Copy build artefacts into current dir

---------

Co-authored-by: George Barnett <gbarnett@apple.com>
Gustavo Cairo пре 1 година
родитељ
комит
e1ef29d8a3
3 измењених фајлова са 14 додато и 11 уклоњено
  1. 5 1
      .github/workflows/release.yml
  2. 8 2
      Sources/GRPC/Docs.docc/index.md
  3. 1 8
      docs/plugin.md

+ 5 - 1
.github/workflows/release.yml

@@ -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: |

+ 8 - 2
Sources/GRPC/Docs.docc/index.md

@@ -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.
 

+ 1 - 8
docs/plugin.md

@@ -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