Skip to content

build(deps): bump elasticsearch from 8.7.0 to 8.8.1 in /examples/skywalking #111

build(deps): bump elasticsearch from 8.7.0 to 8.8.1 in /examples/skywalking

build(deps): bump elasticsearch from 8.7.0 to 8.8.1 in /examples/skywalking #111

name: ios_build
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.head_ref-github.workflow || github.run_id }}
cancel-in-progress: true
jobs:
iosbuild:
if: github.repository == 'envoyproxy/envoy'
name: ios_build
runs-on: macos-12
timeout-minutes: 120
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- id: should_run
name: 'Check whether to run'
run: ./mobile/tools/should_run_ci.sh
- run: cd mobile && ./ci/mac_ci_setup.sh
if: steps.should_run.outputs.run_ci_job == 'true'
name: 'Install dependencies'
- name: 'Build Envoy.framework distributable'
if: steps.should_run.outputs.run_ci_job == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile && ./bazelw shutdown
./bazelw build \
--config=ios \
$([ -z $GITHUB_TOKEN ] || echo "--config=remote-ci-macos") \
//library/swift:ios_framework
swifthelloworld:
if: github.repository == 'envoyproxy/envoy'
name: swift_helloworld
needs: iosbuild
runs-on: macos-12
timeout-minutes: 50
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- id: should_run
name: 'Check whether to run'
run: ./mobile/tools/should_run_ci.sh
- run: cd mobile && ./ci/mac_ci_setup.sh
if: steps.should_run.outputs.run_ci_job == 'true'
name: 'Install dependencies'
- name: 'Build app'
if: steps.should_run.outputs.run_ci_job == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile && ./bazelw build \
--config=ios \
$([ -z $GITHUB_TOKEN ] || echo "--config=remote-ci-macos") \
//examples/swift/hello_world:app
- uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
if: steps.should_run.outputs.run_ci_job == 'true'
name: 'Start simulator'
with:
timeout_minutes: 5
max_attempts: 3
command: ./mobile/ci/start_ios_simulator.sh
# Run the app in the background and redirect logs.
- name: 'Run app'
if: steps.should_run.outputs.run_ci_job == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile && ./bazelw run \
--config=ios \
$([ -z $GITHUB_TOKEN ] || echo "--config=remote-ci-macos") \
//examples/swift/hello_world:app &> /tmp/envoy.log &
- run: sed '/received headers with status 200/q' <(touch /tmp/envoy.log && tail -F /tmp/envoy.log)
if: steps.should_run.outputs.run_ci_job == 'true'
name: 'Check connectivity'
- run: cat /tmp/envoy.log
if: ${{ failure() || cancelled() }}
name: 'Log app run'
swiftbaselineapp:
if: github.repository == 'envoyproxy/envoy'
name: swift_baseline_app
needs: iosbuild
runs-on: macos-12
timeout-minutes: 50
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- id: should_run
name: 'Check whether to run'
run: ./mobile/tools/should_run_ci.sh
- run: cd mobile && ./ci/mac_ci_setup.sh
if: steps.should_run.outputs.run_ci_job == 'true'
name: 'Install dependencies'
- name: 'Build app'
if: steps.should_run.outputs.run_ci_job == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile && ./bazelw build \
--config=ios \
$([ -z $GITHUB_TOKEN ] || echo "--config=remote-ci-macos") \
//test/swift/apps/baseline:app
- uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
if: steps.should_run.outputs.run_ci_job == 'true'
name: 'Start simulator'
with:
timeout_minutes: 5
max_attempts: 3
command: ./mobile/ci/start_ios_simulator.sh
# Run the app in the background and redirect logs.
- name: 'Run app'
if: steps.should_run.outputs.run_ci_job == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile && ./bazelw run \
--config=ios \
$([ -z $GITHUB_TOKEN ] || echo "--config=remote-ci-macos") \
//test/swift/apps/baseline:app &> /tmp/envoy.log &
- run: sed '/received headers with status 301/q' <(touch /tmp/envoy.log && tail -F /tmp/envoy.log)
if: steps.should_run.outputs.run_ci_job == 'true'
name: 'Check connectivity'
- run: cat /tmp/envoy.log
if: ${{ failure() || cancelled() }}
name: 'Log app run'
swiftexperimentalapp:
if: github.repository == 'envoyproxy/envoy'
name: swift_experimental_app
needs: iosbuild
runs-on: macos-12
timeout-minutes: 50
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- id: should_run
name: 'Check whether to run'
run: ./mobile/tools/should_run_ci.sh
- run: cd mobile && ./ci/mac_ci_setup.sh
if: steps.should_run.outputs.run_ci_job == 'true'
name: 'Install dependencies'
- name: 'Build app'
if: steps.should_run.outputs.run_ci_job == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile && ./bazelw build \
--config=ios \
$([ -z $GITHUB_TOKEN ] || echo "--config=remote-ci-macos") \
--define=admin_functionality=enabled \
--define envoy_mobile_listener=enabled \
//test/swift/apps/experimental:app
- uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
if: steps.should_run.outputs.run_ci_job == 'true'
name: 'Start simulator'
with:
timeout_minutes: 5
max_attempts: 3
command: ./mobile/ci/start_ios_simulator.sh
# Run the app in the background and redirect logs.
- name: 'Run app'
if: steps.should_run.outputs.run_ci_job == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile && ./bazelw run \
--config=ios \
$([ -z $GITHUB_TOKEN ] || echo "--config=remote-ci-macos") \
--define=admin_functionality=enabled \
--define envoy_mobile_listener=enabled \
//test/swift/apps/experimental:app &> /tmp/envoy.log &
- run: sed '/received headers with status 200/q' <(touch /tmp/envoy.log && tail -F /tmp/envoy.log)
if: steps.should_run.outputs.run_ci_job == 'true'
name: 'Check connectivity'
- run: cat /tmp/envoy.log
if: ${{ failure() || cancelled() }}
name: 'Log app run'
swiftasyncawait:
if: github.repository == 'envoyproxy/envoy'
name: swift_async_await
needs: iosbuild
runs-on: macos-12
timeout-minutes: 50
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- id: should_run
name: 'Check whether to run'
run: ./mobile/tools/should_run_ci.sh
- run: cd mobile && ./ci/mac_ci_setup.sh
if: steps.should_run.outputs.run_ci_job == 'true'
name: 'Install dependencies'
- name: 'Build app'
if: steps.should_run.outputs.run_ci_job == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile && ./bazelw build \
--config=ios \
$([ -z $GITHUB_TOKEN ] || echo "--config=remote-ci-macos") \
//examples/swift/async_await:app
- uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
if: steps.should_run.outputs.run_ci_job == 'true'
name: 'Start simulator'
with:
timeout_minutes: 5
max_attempts: 3
command: ./mobile/ci/start_ios_simulator.sh
# Run the app in the background and redirect logs.
- name: 'Run app'
if: steps.should_run.outputs.run_ci_job == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile && ./bazelw run \
--config=ios \
$([ -z $GITHUB_TOKEN ] || echo "--config=remote-ci-macos") \
//examples/swift/async_await:app &> /tmp/envoy.log &
- run: sed '/\[2\] Uploaded 7 MB of data/q' <(touch /tmp/envoy.log && tail -F /tmp/envoy.log)
if: steps.should_run.outputs.run_ci_job == 'true'
name: 'Check upload succeeded'
- run: cat /tmp/envoy.log
if: ${{ failure() || cancelled() }}
name: 'Log app run'
objchelloworld:
if: github.repository == 'envoyproxy/envoy'
name: objc_helloworld
needs: iosbuild
runs-on: macos-12
timeout-minutes: 50
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- id: should_run
name: 'Check whether to run'
run: ./mobile/tools/should_run_ci.sh
- run: cd mobile && ./ci/mac_ci_setup.sh
if: steps.should_run.outputs.run_ci_job == 'true'
name: 'Install dependencies'
- name: 'Build app'
if: steps.should_run.outputs.run_ci_job == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile && ./bazelw build \
--config=ios \
$([ -z $GITHUB_TOKEN ] || echo "--config=remote-ci-macos") \
//examples/objective-c/hello_world:app
- uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
if: steps.should_run.outputs.run_ci_job == 'true'
name: 'Start simulator'
with:
timeout_minutes: 5
max_attempts: 3
command: ./mobile/ci/start_ios_simulator.sh
# Run the app in the background and redirect logs.
- name: 'Run app'
if: steps.should_run.outputs.run_ci_job == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile && ./bazelw run \
--config=ios \
$([ -z $GITHUB_TOKEN ] || echo "--config=remote-ci-macos") \
//examples/objective-c/hello_world:app &> /tmp/envoy.log &
- run: sed '/received headers with status 301/q' <(touch /tmp/envoy.log && tail -F /tmp/envoy.log)
if: steps.should_run.outputs.run_ci_job == 'true'
name: 'Check connectivity'
- run: cat /tmp/envoy.log
if: ${{ failure() || cancelled() }}
name: 'Log app run'