forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
153 lines (149 loc) · 3.79 KB
/
_mobile_container_ci.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
name: Mobile CI
permissions:
contents: read
on:
workflow_call:
secrets:
app-id:
app-key:
rbe-key:
ssh-key-extra:
inputs:
args:
type: string
catch-errors:
type: boolean
default: false
checkout-extra:
type: string
default:
command:
type: string
default: ./bazelw
container:
type: string
container-output:
type: string
default:
container-command:
type: string
default: >-
docker run
--volume=${PWD}:/source
--volume=${TMP_ENTRYPOINT}:/tmp/mobile-entrypoint.sh
--volume=/tmp/cache:/root/.cache
--volume=/tmp/container-output:/tmp/container-output
--workdir=/source/mobile
--entrypoint=/tmp/mobile-entrypoint.sh
-e GITHUB_TOKEN
-e CC
-e CXX
-e COVERAGE_THRESHOLD
-e BAZEL_BUILD_OPTION_LIST
-e MOBILE_DOCS_CHECKOUT_DIR
diskspace-hack:
type: boolean
default: false
downloads:
type: string
default:
entrypoint:
type: string
default:
entrypoint-DEFAULT:
type: string
default: |
#!/bin/bash -e
export PATH=/opt/llvm/bin:$PATH
exec "$@"
error-match:
type: string
default: |
ERROR
error:
Error:
notice-match:
type: string
default: |
NOTICE
Streaming build results
output-path:
type: string
default: /tmp/container-output
rbe:
type: boolean
default: true
ref:
type: string
request:
type: string
required: true
runs-on:
type: string
skip:
type: boolean
default: false
source:
type: string
default:
steps-pre:
type: string
steps-pre-name:
type: string
steps-post:
type: string
default:
steps-post-name:
type: string
target:
type: string
required: true
temp-dir:
type: string
timeout-minutes:
type: number
trusted:
type: boolean
default: false
upload-name:
type: string
upload-path:
type: string
warning-match:
type: string
default: |
WARNING
warning:
Warning:
jobs:
ci:
uses: ./.github/workflows/_run.yml
name: ${{ inputs.target }}
permissions:
contents: read
packages: read
secrets:
ssh-key-extra: ${{ secrets.ssh-key-extra }}
with:
args: ${{ inputs.args }}
rbe: ${{ inputs.rbe }}
# This always just caches the main build image, the mobile one is layered on top
cache-build-image: ${{ fromJSON(inputs.request).request.build-image.default }}
catch-errors: ${{ inputs.catch-errors }}
container-command: ${{ inputs.container-command }} ${{ inputs.container || fromJSON(inputs.request).request.build-image.default }}
container-output: ${{ inputs.container-output }}
command: ${{ inputs.command }}
entrypoint: ${{ inputs.entrypoint || inputs.entrypoint-DEFAULT }}
downloads: ${{ inputs.downloads }}
error-match: ${{ inputs.error-match }}
notice-match: ${{ inputs.notice-match }}
output-path: ${{ inputs.output-path }}
request: ${{ inputs.request }}
source: ${{ inputs.source }}
steps-pre: ${{ inputs.steps-pre }}
steps-post: ${{ inputs.steps-post }}
target: ${{ inputs.target }}
trusted: ${{ fromJSON(inputs.request).request.trusted }}
upload-name: ${{ inputs.upload-name }}
upload-path: ${{ inputs.upload-path }}
warning-match: ${{ inputs.warning-match }}