From 277f512dbb1662d9b192a17814ffcc5ff31ec69f Mon Sep 17 00:00:00 2001 From: iphydf Date: Sun, 2 Jan 2022 02:48:54 +0000 Subject: [PATCH] chore: Add bazel-debug build. This has in the already found real bugs that only happen when compiling with stack protector and no optimisations. --- .cirrus.yml | 18 ++++++++++++++++++ .github/settings.yml | 1 + 2 files changed, 19 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index 9a97e2dd..5365c0f8 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -17,6 +17,24 @@ bazel-release_task: //c-toxcore/... -//c-toxcore/auto_tests:tcp_relay_test # TODO(robinlinden): Why does this pass locally but not in Cirrus? +bazel-debug_task: + container: + image: toxchat/toktok-stack:0.0.31-debug + cpu: 2 + memory: 2G + configure_script: + - /src/workspace/tools/inject-repo c-toxcore + test_all_script: + - cd /src/workspace && bazel test -k + --remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST + --build_tag_filters=-haskell + --test_tag_filters=-haskell + --remote_download_minimal + --config=debug + -- + //c-toxcore/... + -//c-toxcore/auto_tests:tcp_relay_test # TODO(robinlinden): Why does this pass locally but not in Cirrus? + cimple_task: container: image: toxchat/toktok-stack:0.0.31-release diff --git a/.github/settings.yml b/.github/settings.yml index 7953182b..830864f6 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -12,6 +12,7 @@ branches: protection: required_status_checks: contexts: + - "bazel-debug" - "bazel-release" - "build-bootstrapd-docker" - "build-compcert"