- name: Envoy Proxy
  run:
    when: "${FORCE_RUN} or change_in(['/metadata.mk', '/lib.Makefile', '/third_party/envoy-proxy'], {pipeline_file: 'ignore', exclude: ['/**/.gitignore', '/**/README.md', '/**/LICENSE']})"
  execution_time_limit:
    minutes: 30
  dependencies:
    - Prerequisites
  task:
    prologue:
      commands:
        - cd third_party/envoy-proxy
    jobs:
      - name: "Envoy Proxy: CI"
        commands:
          - ../../.semaphore/run-and-monitor make-ci.log make ci
      - name: "Envoy Proxy: build multi-arch binaries"
        matrix:
          - env_var: ARCH
            values:
              - arm64
              - ppc64le
              - s390x
        commands:
          - ../../.semaphore/run-and-monitor image-$ARCH.log make build ARCH=$ARCH
