forked from grpc/grpc-node
-
Notifications
You must be signed in to change notification settings - Fork 0
134 lines (132 loc) · 4.32 KB
/
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
name: Binary build
on:
push:
branches:
pull_request:
branches:
jobs:
all_node_glibc:
name: All Simple Native Builds
strategy:
matrix:
node: ['4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '16']
arch: [ia32, x64]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
env:
ARCH: ${{matrix.arch}}
VERSION: ${{matrix.node}}.0.0
RUNTIME: node
LIBC: glibc
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v2
with:
node-version: 14
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
if: ${{matrix.os == 'windows-latest'}}
- name: Build
run: packages/grpc-native-core/tools/run_tests/artifacts/build_one_artifact_${{matrix.os}}.sh
if: ${{matrix.os != 'windows-latest'}}
- name: Build
run: packages/grpc-native-core/tools/run_tests/artifacts/build_one_artifact_${{matrix.os}}.bat
if: ${{matrix.os == 'windows-latest'}}
- uses: actions/upload-artifact@v2
with:
name: node_glibc_${{matrix.os}}_${{matrix.node}}_${{matrix.arch}}
path: artifacts/
all_electron:
name: All Electron Builds
strategy:
matrix:
electron: ['1.0', '1.1', '1.2', '1.3', '1.4', '1.5', '1.6', '1.7', '1.8', '2.0', '3.0', '3.1', '4.1', '4.2', '5.0', '6.0', '6.1', '7.0', '7.1', '7.2', '7.3', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5', '9.0', '9.1', '9.2', '9.3', '10.0', '10.1', '10.2', '10.3', '11.0', '11.1', '11.2']
arch: [ia32, x64]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
env:
ARCH: ${{matrix.arch}}
VERSION: ${{matrix.electron}}.0
RUNTIME: electron
LIBC: glibc
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v2
with:
node-version: 14
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
if: ${{matrix.os == 'windows-latest'}}
- name: Build
run: packages/grpc-native-core/tools/run_tests/artifacts/build_one_artifact_${{matrix.os}}.sh
if: ${{matrix.os != 'windows-latest'}}
- name: Build
run: packages/grpc-native-core/tools/run_tests/artifacts/build_one_artifact_${{matrix.os}}.bat
if: ${{matrix.os == 'windows-latest'}}
- uses: actions/upload-artifact@v2
with:
name: electron_${{matrix.os}}_${{matrix.electron}}_${{matrix.arch}}
path: artifacts/
linux_node_alpine:
name: Linux Alpine Build
runs-on: ubuntu-latest
strategy:
matrix:
node: ['4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '16']
env:
ARCH: x64
VERSION: ${{matrix.node}}.0.0
RUNTIME: node
LIBC: musl
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Build
run: packages/grpc-native-core/tools/run_tests/artifacts/build_one_artifact_ubuntu-latest.sh
- uses: actions/upload-artifact@v2
with:
name: linux_native_alpine_${{matrix.node}}
path: artifacts/
linux_node_cross:
name: Linux Cross Compilation Builds
runs-on: ubuntu-latest
strategy:
matrix:
node: ['4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '16']
arch: [arm, arm64, s390x]
env:
ARCH: ${{matrix.arch}}
VERSION: ${{matrix.node}}.0.0
RUNTIME: node
LIBC: glibc
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Build
run: packages/grpc-native-core/tools/run_tests/artifacts/build_one_artifact_ubuntu-latest.sh
- uses: actions/upload-artifact@v2
with:
name: linux_cross_${{matrix.node}}_${{matrix.arch}}
path: artifacts/
combine_artifacts:
name: Combine Artifacts
runs-on: ubuntu-latest
needs: [all_node_glibc, all_electron, linux_node_alpine, linux_node_cross]
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/