-
Notifications
You must be signed in to change notification settings - Fork 651
75 lines (72 loc) · 2.04 KB
/
grpc-tools-build.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: grpc-tools Build
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
linux_build:
name: Linux grpc-tools Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Build
run: |
docker build -t kokoro-native-image tools/release/native
docker run -v /var/run/docker.sock:/var/run/docker.sock -v $GITHUB_WORKSPACE:$GITHUB_WORKSPACE kokoro-native-image $GITHUB_WORKSPACE/packages/grpc-tools/build_binaries.sh
- uses: actions/upload-artifact@v2
with:
name: grpc-tools_linux
path: artifacts/
macos_build:
name: Macos grpc-tools Build
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Build
run: packages/grpc-tools/build_binaries.sh
- uses: actions/upload-artifact@v2
with:
name: grpc-tools_macos
path: artifacts/
windows_build:
name: Windows grpc-tools Build
runs-on: windows-latest
strategy:
matrix:
arch: [ia32, x64]
env:
ARCH: ${{matrix.arch}}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Build
run: powershell -File ./packages/grpc-tools/build_binaries.ps1
shell: cmd
- uses: actions/upload-artifact@v1
with:
name: grpc-tools_windows_${{matrix.arch}}
path: artifacts/
combine_artifacts:
name: Combine grpc-tools artifacts
runs-on: ubuntu-latest
needs: [linux_build, macos_build, windows_build]
steps:
- uses: actions/download-artifact@v2
- name: Copy
run: |
mkdir artifacts
cp -r ./**/* artifacts/
- uses: actions/upload-artifact@v2
with:
name: combined-artifacts
path: artifacts/