File tree 6 files changed +264
-6
lines changed
javascript/net/grpc/web/generator 6 files changed +264
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : Make ARM Plugins (Windows/macOS/Linux)
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ version_number :
7
+ description : ' Version number'
8
+ required : true
9
+ default : ' 1.x.x'
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v3
16
+ with :
17
+ submodules : ' recursive'
18
+ - name : Setup Zig
19
+ run : |
20
+ mkdir /zig
21
+ curl 'https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz' | tar xJ --strip-components=1 --directory=/zig
22
+ ln -s /zig/zig /usr/bin/zig
23
+ - name : Build plugin
24
+ env :
25
+ VERSION : ${{ github.event.inputs.version_number }}
26
+ run : |
27
+ cd javascript/net/grpc/web/generator
28
+ zig build -Drelease-fast
29
+ - name : gen and verify sha256
30
+ run : |
31
+ cd javascript/net/grpc/web/generator/zig-out/bin
32
+ for exe in $(ls)
33
+ do
34
+ openssl dgst -sha256 -r -out $exe'.sha256' $exe
35
+ sha256sum -c $exe'.sha256'
36
+ done
37
+ - name : Upload artifacts
38
+ uses : actions/upload-artifact@v3
39
+ with :
40
+ name : plugin
41
+ path : javascript/net/grpc/web/generator/zig-out/bin/
Original file line number Diff line number Diff line change 12
12
build :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - uses : actions/checkout@v2
15
+ - uses : actions/checkout@v3
16
16
- name : Build plugin docker image
17
17
run : docker-compose build prereqs protoc-plugin
18
18
- name : Copy binary from Docker image
26
26
- name : verify sha256
27
27
run : sha256sum -c protoc-gen-grpc-web-${{ github.event.inputs.version_number }}-linux-x86_64.sha256
28
28
- name : Upload artifacts
29
- uses : actions/upload-artifact@v2
29
+ uses : actions/upload-artifact@v3
30
30
with :
31
31
name : plugin
32
32
path : protoc-gen-grpc-web*
Original file line number Diff line number Diff line change 12
12
build :
13
13
runs-on : macos-latest
14
14
steps :
15
- - uses : actions/checkout@v2
15
+ - uses : actions/checkout@v3
16
16
- name : Install build utils
17
17
run : brew install coreutils automake
18
18
- name : Checkout protobuf code
42
42
- name : verify sha256
43
43
run : sha256sum -c protoc-gen-grpc-web-${{ github.event.inputs.version_number }}-darwin-x86_64.sha256
44
44
- name : Upload artifacts
45
- uses : actions/upload-artifact@v2
45
+ uses : actions/upload-artifact@v3
46
46
with :
47
47
name : plugin
48
48
path : protoc-gen-grpc-web*
Original file line number Diff line number Diff line change 12
12
build :
13
13
runs-on : windows-latest
14
14
steps :
15
- - uses : actions/checkout@v2
15
+ - uses : actions/checkout@v3
16
16
- name : Print Bazel version
17
17
run : |
18
18
bazel version
31
31
# TODO: Check sha256 (sha256sum not available for now. )
32
32
# - name: verify sha256
33
33
- name : Upload artifacts
34
- uses : actions/upload-artifact@v2
34
+ uses : actions/upload-artifact@v3
35
35
with :
36
36
name : plugin
37
37
path : protoc-gen-grpc-web*
Original file line number Diff line number Diff line change 11
11
.project
12
12
.classpath
13
13
.settings
14
+ zig-out
15
+ zig-cache
You can’t perform that action at this time.
0 commit comments