forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
126 lines (122 loc) · 4.35 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
name: mobile_compile_time_options
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
secrets: inherit
cc_test_no_yaml:
needs: env
name: cc_test_no_yaml
runs-on: ubuntu-20.04
timeout-minutes: 120
container:
image: envoyproxy/envoy-build-ubuntu:41c5a05d708972d703661b702a63ef5060125c33
steps:
- uses: actions/checkout@v3
- 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 \
$([ -z $GITHUB_TOKEN ] || echo "--config=remote-ci-linux") \
--config=ci \
--define=envoy_yaml=disabled \
--test_env=ENVOY_IP_TEST_VERSIONS=v4only \
//test/common/integration:client_integration_test --test_output=all
cc_test:
needs: env
name: cc_test
runs-on: ${{ needs.env.outputs.agent_ubuntu }}
timeout-minutes: 120
container:
image: envoyproxy/envoy-build-ubuntu:41c5a05d708972d703661b702a63ef5060125c33
steps:
- uses: actions/checkout@v3
- 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
./bazelw test \
--test_output=all \
$([ -z $GITHUB_TOKEN ] || echo "--config=remote-ci-linux") \
--config=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= \
$(bazel query //test/cc/... + //test/common/... except //test/common/integration:client_integration_test)
swift_build:
if: ${{ needs.env.outputs.mobile_compile_time_options == 'true' }}
needs: env
name: swift_build
runs-on: macos-12
timeout-minutes: 120
steps:
- uses: actions/checkout@v3
- 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 \
$([ -z $GITHUB_TOKEN ] || echo "--config=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
name: kotlin_build
runs-on: macos-12
timeout-minutes: 120
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2
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 \
$([ -z $GITHUB_TOKEN ] || echo "--config=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