forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
187 lines (173 loc) · 6.88 KB
/
_env.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
name: Environment
permissions:
contents: read
on:
workflow_call:
inputs:
# Authoritative configuration for build image/s
build_image_repo:
type: string
default: envoyproxy/envoy-build-ubuntu
build_image_sha:
type: string
default: 8d3763e19d5b71fdc95666d75073ce4581e566ce28ca09106607b6a3ef7ba902
build_image_mobile_sha:
type: string
default: 0f51a1015964355092d9204acdacdd727474d1af189bc256dd5a28e6126f9c95
build_image_tag:
type: string
default: 94e5d873c145ae86f205117e76276161c9af4806
check_mobile_run:
type: boolean
default: true
prime_build_image:
type: boolean
default: false
start_check_status:
type: string
default:
repo_ref:
type: string
default:
repo_ref_sha:
type: string
default:
repo_ref_name:
type: string
default:
outputs:
debug:
value: false
agent_ubuntu:
value: ubuntu-22.04
build_image_ubuntu:
value: ${{ jobs.repo.outputs.build_image_ubuntu }}
build_image_ubuntu_mobile:
value: ${{ jobs.repo.outputs.build_image_ubuntu_mobile }}
mobile_android_build:
value: ${{ jobs.repo.outputs.mobile_android_build }}
mobile_android_build_all:
value: ${{ jobs.repo.outputs.mobile_android_build_all }}
mobile_android_tests:
value: ${{ jobs.repo.outputs.mobile_android_tests }}
mobile_asan:
value: ${{ jobs.repo.outputs.mobile_asan }}
mobile_cc_tests:
value: ${{ jobs.repo.outputs.mobile_cc_tests }}
mobile_compile_time_options:
value: ${{ jobs.repo.outputs.mobile_compile_time_options }}
mobile_coverage:
value: ${{ jobs.repo.outputs.mobile_coverage }}
mobile_formatting:
value: ${{ jobs.repo.outputs.mobile_formatting }}
mobile_ios_build:
value: ${{ jobs.repo.outputs.mobile_ios_build }}
mobile_ios_build_all:
value: ${{ jobs.repo.outputs.mobile_ios_build_all }}
mobile_ios_tests:
value: ${{ jobs.repo.outputs.mobile_ios_tests }}
mobile_release_validation:
value: ${{ jobs.repo.outputs.mobile_release_validation }}
mobile_tsan:
value: ${{ jobs.repo.outputs.mobile_tsan }}
repo_ref:
value: ${{ jobs.repo.outputs.repo_ref }}
repo_ref_name:
value: ${{ jobs.repo.outputs.repo_ref_name }}
repo_ref_sha:
value: ${{ jobs.repo.outputs.repo_ref_sha }}
repo_ref_sha_short:
value: ${{ jobs.repo.outputs.repo_ref_sha_short }}
repo_ref_title:
value: ${{ jobs.repo.outputs.repo_ref_title }}
trusted:
value: ${{ jobs.repo.outputs.trusted }}
version_dev:
value: ${{ jobs.repo.outputs.version_dev }}
version_patch:
value: ${{ jobs.repo.outputs.version_patch }}
concurrency:
group: |
${{ github.actor != 'trigger-release-envoy[bot]'
&& github.event.inputs.head_ref
|| github.run_id
}}-${{ github.workflow }}-env
cancel-in-progress: true
jobs:
repo:
if: github.repository == 'envoyproxy/envoy'
runs-on: ubuntu-22.04
outputs:
build_image_ubuntu: ${{ steps.env.outputs.build_image_ubuntu }}
build_image_ubuntu_mobile: ${{ steps.env.outputs.build_image_ubuntu_mobile }}
mobile_android_build: ${{ steps.env.outputs.mobile_android_build }}
mobile_android_build_all: ${{ steps.env.outputs.mobile_android_build_all }}
mobile_android_tests: ${{ steps.env.outputs.mobile_android_tests }}
mobile_asan: ${{ steps.env.outputs.mobile_asan }}
mobile_cc_tests: ${{ steps.env.outputs.mobile_cc_tests }}
mobile_compile_time_options: ${{ steps.env.outputs.mobile_compile_time_options }}
mobile_coverage: ${{ steps.env.outputs.mobile_coverage }}
mobile_formatting: ${{ steps.env.outputs.mobile_formatting }}
mobile_ios_build: ${{ steps.env.outputs.mobile_ios_build }}
mobile_ios_build_all: ${{ steps.env.outputs.mobile_ios_build_all }}
mobile_ios_tests: ${{ steps.env.outputs.mobile_ios_tests }}
mobile_release_validation: ${{ steps.env.outputs.mobile_release_validation }}
mobile_tsan: ${{ steps.env.outputs.mobile_tsan }}
repo_ref: ${{ steps.env.outputs.repo_ref }}
repo_ref_name: ${{ steps.env.outputs.repo_ref_name }}
repo_ref_sha: ${{ steps.env.outputs.repo_ref_sha }}
repo_ref_sha_short: ${{ steps.env.outputs.repo_ref_sha_short }}
repo_ref_title: ${{ steps.env.outputs.repo_ref_title }}
trusted: ${{ steps.env.outputs.trusted }}
version_dev: ${{ steps.env.outputs.version_dev }}
version_patch: ${{ steps.env.outputs.version_patch }}
steps:
- uses: actions/checkout@v4
name: Checkout Envoy repository
with:
fetch-depth: ${{ ! inputs.check_mobile_run && 1 || 0 }}
- uses: ./.github/actions/env
name: Generate environment variables
id: env
with:
check_mobile_run: ${{ inputs.check_mobile_run }}
repo_ref: ${{ inputs.repo_ref }}
repo_ref_name: ${{ inputs.repo_ref_name }}
repo_ref_sha: ${{ inputs.repo_ref_sha }}
build_image_repo: ${{ inputs.build_image_repo }}
build_image_tag: ${{ inputs.build_image_tag }}
build_image_mobile_sha: ${{ inputs.build_image_mobile_sha }}
build_image_sha: ${{ inputs.build_image_sha }}
- name: 'Print env'
run: |
echo "version_dev=${{ steps.env.outputs.version_dev }}"
echo "version_patch=${{ steps.env.outputs.version_patch }}"
echo "trusted=${{ steps.env.outputs.trusted }}"
echo "repo_ref=${{ steps.env.outputs.repo_ref }}"
echo "repo_ref_name=${{ steps.env.outputs.repo_ref_name }}"
echo "repo_ref_pr_number=${{ steps.env.outputs.repo_ref_pr_number }}"
echo "repo_ref_sha=${{ steps.env.outputs.repo_ref_sha }}"
echo "repo_ref_sha_short=${{ steps.env.outputs.repo_ref_sha_short }}"
echo "repo_ref_title=${{ steps.env.outputs.repo_ref_title }}"
echo "build_image_ubuntu=${{ steps.env.outputs.build_image_ubuntu }}"
echo "build_image_ubuntu_mobile=${{ steps.env.outputs.build_image_ubuntu_mobile }}"
echo
if [[ -n "${{ steps.env.outputs.repo_ref_pr_number }}" ]]; then
echo "PR: https://github.com/envoyproxy/envoy/pull/${{ steps.env.outputs.repo_ref_pr_number }}"
fi
check:
if: ${{ inputs.start_check_status && github.event_name != 'pull_request' }}
uses: ./.github/workflows/_workflow-start.yml
permissions:
contents: read
statuses: write
with:
workflow_name: ${{ inputs.start_check_status }}
sha: ${{ inputs.repo_ref_sha }}
cache:
if: ${{ inputs.prime_build_image }}
uses: ./.github/workflows/_cache_docker.yml
with:
image_repo: ${{ inputs.build_image_repo }}
image_tag: ${{ inputs.build_image_tag }}
image_sha: ${{ inputs.build_image_sha }}