Skip to content

Commit

Permalink
Initial ci setup (#3)
Browse files Browse the repository at this point in the history
* Add .circleci/config.yml

* Init ci

* Updated config.yml

* tweak ci

* Larger executor

* Fix build

* Limit to 16 jobs

* typo
  • Loading branch information
anakinxc authored Jun 15, 2023
1 parent bea856e commit c754de2
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.0
5.4.1
31 changes: 31 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c754de2

Please sign in to comment.