-
Notifications
You must be signed in to change notification settings - Fork 84
96 lines (94 loc) · 3 KB
/
ios.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
name: ios
on:
push:
branches:
- master
pull_request:
jobs:
macdist:
name: mac_dist
runs-on: macOS-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: 'Install dependencies'
run: ./ci/mac_ci_setup.sh
- name: 'Build Envoy.framework distributable'
run: bazel build --config=ios //:ios_dist
- name: 'Zip Envoy.framework.zip distributable'
run: zip -r dist/Envoy.framework.zip dist/Envoy.framework
- run: ls -lh dist/
- uses: actions/upload-artifact@v1
with:
name: Envoy.framework.zip
path: dist/Envoy.framework.zip
macswift:
name: mac_swift_helloworld
needs: macdist
runs-on: macOS-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: 'Install dependencies'
run: ./ci/mac_ci_setup.sh
- uses: actions/download-artifact@v1
with:
name: Envoy.framework.zip
path: dist/
- run: unzip dist/Envoy.framework.zip
- run: ls -lh dist/
- name: 'Build swift app'
run: bazel build --config=ios //examples/swift/hello_world:app
# Run the app in the background and redirect logs.
- name: 'Run swift app'
run: bazel run --config=ios //examples/swift/hello_world:app &> /tmp/envoy.log &
# Wait for the app to start and get some requests/responses.
- name: 'Sleep'
run: sleep 120
# Check for the sentinel value that shows the app is alive and well.
- name: 'Check liveliness'
run: 'cat /tmp/envoy.log'
macobjc:
name: mac_objc_helloworld
needs: macdist
runs-on: macOS-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: 'Install dependencies'
run: ./ci/mac_ci_setup.sh
- uses: actions/download-artifact@v1
with:
name: Envoy.framework.zip
path: dist/
- run: unzip dist/Envoy.framework.zip
- run: ls -lh dist/
- name: 'Build objective-c app'
run: bazel build --config=ios //examples/objective-c/hello_world:app
# Run the app in the background and redirect logs.
- name: 'Run objective-c app'
run: bazel run --config=ios //examples/objective-c/hello_world:app &> /tmp/envoy.log &
# Wait for the app to start and get some requests/responses.
- name: 'Sleep'
run: sleep 120
# Check for the sentinel value that shows the app is alive and well.
- name: 'Check liveliness'
run: 'cat /tmp/envoy.log'
swifttests:
name: swift_tests
runs-on: macOS-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: 'Install dependencies'
run: ./ci/mac_ci_setup.sh
- name: 'Run swift library tests'
run: bazel test --test_output=all --config=ios --build_tests_only //library/swift/test/...