forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 1
179 lines (171 loc) · 5.59 KB
/
mobile-compile_time_options.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
name: mobile_compile_time_options
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.head_ref || github.run_id }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
env:
if: ${{ github.repository == 'envoyproxy/envoy' }}
uses: ./.github/workflows/_env.yml
permissions:
contents: read
cc_test_no_yaml:
needs: env
permissions:
contents: read
packages: read
name: cc_test_no_yaml
runs-on: ubuntu-20.04
timeout-minutes: 120
container:
image: ${{ needs.env.outputs.build_image_ubuntu }}
steps:
- uses: actions/checkout@v4
- name: Add safe directory
run: git config --global --add safe.directory /__w/envoy/envoy
- name: 'Running C++ test with YAML disabled'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Envoy Mobile build which verifies that the build configuration where YAML is disabled.
run: |
cd mobile
./bazelw test \
--config=mobile-remote-ci \
--define=envoy_yaml=disabled \
--define=envoy_full_protos=disabled \
--test_env=ENVOY_IP_TEST_VERSIONS=v4only \
//test/common/integration:client_integration_test
cc_build_no_exceptions:
needs: env
permissions:
contents: read
packages: read
name: cc_test_no_yaml
runs-on: ubuntu-20.04
timeout-minutes: 120
container:
image: ${{ needs.env.outputs.build_image_ubuntu }}
steps:
- uses: actions/checkout@v4
- name: Add safe directory
run: git config --global --add safe.directory /__w/envoy/envoy
- name: 'Running C++ build with exceptions disabled'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Envoy Mobile build which verifies that the build configuration where YAML is disabled.
run: |
cd mobile
./bazelw build \
--config=mobile-remote-ci \
--define=admin_html=disabled \
--define=admin_functionality=disabled \
--define envoy_exceptions=disabled \
--define envoy_mobile_listener=disabled \
--define=envoy_yaml=disabled \
--copt=-fno-unwind-tables \
--copt=-fno-exceptions \
//test/performance:test_binary_size
cc_test:
needs: env
permissions:
contents: read
packages: read
name: cc_test
runs-on: ${{ needs.env.outputs.agent_ubuntu }}
timeout-minutes: 120
container:
image: ${{ needs.env.outputs.build_image_ubuntu }}
steps:
- uses: actions/checkout@v4
- name: Add safe directory
run: git config --global --add safe.directory /__w/envoy/envoy
- name: 'Running C++ tests'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile
TARGETS=$(bazel query --noshow_progress --noshow_loading_progress //test/cc/... + //test/common/... except //test/common/integration:client_integration_test)
./bazelw test \
--test_output=all \
--config=mobile-remote-ci \
--define=signal_trace=disabled \
--define=envoy_mobile_request_compression=disabled \
--define=envoy_enable_http_datagrams=disabled \
--define=google_grpc=disabled \
--@com_envoyproxy_protoc_gen_validate//bazel:template-flavor= \
$TARGETS
swift_build:
if: ${{ needs.env.outputs.mobile_compile_time_options == 'true' }}
needs: env
permissions:
contents: read
packages: read
name: swift_build
runs-on: macos-12
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- run: |
cd mobile
./ci/mac_ci_setup.sh
name: 'Install dependencies'
- name: 'Build Swift library'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile
./bazelw shutdown
./bazelw build \
--config=ios \
--config=mobile-remote-ci-macos \
--define=signal_trace=disabled \
--define=envoy_mobile_request_compression=disabled \
--define=envoy_mobile_stats_reporting=disabled \
--define=envoy_mobile_swift_cxx_interop=disabled \
--define=envoy_enable_http_datagrams=disabled \
--define=google_grpc=disabled \
--@envoy//bazel:http3=False \
--@com_envoyproxy_protoc_gen_validate//bazel:template-flavor= \
//library/swift:ios_framework
kotlin_build:
if: ${{ needs.env.outputs.mobile_compile_time_options == 'true' }}
needs: env
permissions:
contents: read
packages: read
name: kotlin_build
runs-on: macos-12
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0
with:
java-version: '8'
java-package: jdk
architecture: x64
distribution: zulu
- name: 'Install dependencies'
run: |
cd mobile
./ci/mac_ci_setup.sh --android
- name: 'Build Kotlin library'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile
./bazelw build \
--config=mobile-remote-ci-macos \
--fat_apk_cpu=x86_64 \
--define=signal_trace=disabled \
--define=envoy_mobile_request_compression=disabled \
--define=envoy_enable_http_datagrams=disabled \
--define=google_grpc=disabled \
--define=envoy_yaml=disabled \
--@com_envoyproxy_protoc_gen_validate//bazel:template-flavor= \
//:android_dist