Skip to content

build(deps): bump actions/download-artifact from 3 to 4 #542

build(deps): bump actions/download-artifact from 3 to 4

build(deps): bump actions/download-artifact from 3 to 4 #542

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