From 2ee79b8ec39ca5a943deda6280449f0258c29e2d Mon Sep 17 00:00:00 2001 From: Nick James Kirkby <20824939+driftregion@users.noreply.github.com> Date: Fri, 12 Jul 2024 16:32:29 +0800 Subject: [PATCH] add verbose_failures flag to windows build, remove -g copt from windows build --- .github/workflows/ci.yml | 2 +- test/BUILD | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f62aa9c..70a3a7a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,5 +29,5 @@ jobs: uses: actions/checkout@v3 - name: run unit tests - run: bazel test //test:all + run: bazel test //test:all --verbose_failures diff --git a/test/BUILD b/test/BUILD index 29661cb..23b5729 100644 --- a/test/BUILD +++ b/test/BUILD @@ -62,7 +62,11 @@ TEST_NAMES = [ src.split(".c")[0] for src in TEST_SRCS ] deps=[":env"], size = "small", env = { "UDS_TP_TYPE": "0", }, - copts = ["-g"], + copts = select({ + "//conditions:default": ["-g"], + "@bazel_tools//src/conditions:windows": [ + ], + }), tags = [ "exclusive", ], ) for name, src in zip(TEST_NAMES, TEST_SRCS) ]