forked from grpc/grpc-web
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.11 KB
/
make-plugin-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Make Windows Plugin
on:
workflow_dispatch:
inputs:
version_number:
description: 'Version number'
required: true
default: '1.x.x'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Print Bazel version
run: |
bazel version
- name: build
run: bazel build javascript/net/grpc/web/generator:protoc-gen-grpc-web
- name: move
run: |
mv bazel-bin/javascript/net/grpc/web/generator/protoc-gen-grpc-web.exe \
./protoc-gen-grpc-web-${{ github.event.inputs.version_number }}-windows-x86_64.exe
shell: bash
- name: gen sha256
run: |
openssl dgst -sha256 -r -out protoc-gen-grpc-web-${{ github.event.inputs.version_number }}-windows-x86_64.exe.sha256 \
protoc-gen-grpc-web-${{ github.event.inputs.version_number }}-windows-x86_64.exe
shell: bash
# TODO: Check sha256 (sha256sum not available for now. )
#- name: verify sha256
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: plugin
path: protoc-gen-grpc-web*