From c754de29023ec1746d1533f784389510c0eb813d Mon Sep 17 00:00:00 2001 From: anakinxc <103552181+anakinxc@users.noreply.github.com> Date: Thu, 15 Jun 2023 15:54:18 +0800 Subject: [PATCH] Initial ci setup (#3) * Add .circleci/config.yml * Init ci * Updated config.yml * tweak ci * Larger executor * Fix build * Limit to 16 jobs * typo --- .bazelrc | 4 +--- .bazelversion | 2 +- .circleci/config.yml | 31 +++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 .circleci/config.yml diff --git a/.bazelrc b/.bazelrc index 020cf30..68e6018 100644 --- a/.bazelrc +++ b/.bazelrc @@ -2,6 +2,4 @@ import %workspace%/envoy/.bazelrc build --platform_mappings=envoy/bazel/platform_mappings -build --action_env=GOPROXY=https://goproxy.cn,direct -test --action_env=GOPROXY=https://goproxy.cn,direct -run --action_env=GOPROXY=https://goproxy.cn,direc +build:linux --copt=-Wno-uninitialized diff --git a/.bazelversion b/.bazelversion index 09b254e..ade6522 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -6.0.0 +5.4.1 diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..53030db --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,31 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/configuration-reference +version: 2.1 + +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/configuration-reference/#jobs +jobs: + build-envoy: + docker: + - image: secretflow/ubuntu-base-ci:latest + resource_class: 2xlarge + shell: /bin/bash --login -eo pipefail + steps: + - checkout + - run: + name: Build envoy + command: | + git submodule update --init + git config --global --add safe.directory ./ + bazel build //:envoy -c opt --ui_event_filters=-info,-debug,-warning --jobs 16 + mkdir -p build_apps + mv bazel-bin/envoy build_apps + - store_artifacts: + path: build_apps + +# Orchestrate jobs using workflows +# See: https://circleci.com/docs/configuration-reference/#workflows +workflows: + build-workflow: + jobs: + - build-envoy