From 52928d585cac930557f1e7e00e2f4bdb533e99d3 Mon Sep 17 00:00:00 2001 From: Jon Meow <46229924+jonmeow@users.noreply.github.com> Date: Thu, 13 Jan 2022 14:21:13 -0800 Subject: [PATCH] Workaround for libtool_check_unique errors (#1016) e.g. https://github.com/carbon-language/carbon-lang/runs/4768894988?check_suite_focus=true -- I'm seeing this too frequently and wondering if we can duck it per https://github.com/bazelbuild/bazel/issues/14113#issuecomment-999794586 --- .github/workflows/tests.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b33c548263f92..bce1919dceb1a 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -128,8 +128,16 @@ jobs: # Build all targets first to isolate build failures. - name: Build (${{ matrix.build_mode }}) + env: + # 'libtool_check_unique failed to generate' workaround. + # https://github.com/bazelbuild/bazel/issues/14113#issuecomment-999794586 + BAZEL_USE_CPP_ONLY_TOOLCHAIN: 1 run: bazelisk build -c ${{ matrix.build_mode }} //...:all # Run all test targets. - name: Test (${{ matrix.build_mode }}) + env: + # 'libtool_check_unique failed to generate' workaround. + # https://github.com/bazelbuild/bazel/issues/14113#issuecomment-999794586 + BAZEL_USE_CPP_ONLY_TOOLCHAIN: 1 run: bazelisk test -c ${{ matrix.build_mode }} //...:all