From d6006d3475d8a4a5780672b204897288e24be616 Mon Sep 17 00:00:00 2001 From: ArthurSonzogni Date: Thu, 24 Apr 2025 14:29:21 +0200 Subject: [PATCH] Update workflow. --- .github/workflows/build.yaml | 17 ++--------------- MODULE.bazel | 10 +++++----- 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 036c2ca2..ceaf235a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -12,7 +12,7 @@ on: jobs: test_bazel: - name: "Bazel tests" + name: "Test Bazel" strategy: fail-fast: false matrix: @@ -60,7 +60,7 @@ jobs: run: bazel run tests test_cmake: - name: "CMake tests" + name: "Tests CMake" strategy: fail-fast: false matrix: @@ -104,19 +104,6 @@ jobs: gcovr: "5.0" opencppcoverage: true - - name: "Install Bazel" - uses: bazel-contrib/setup-bazel@0.14.0 - with: - bazelisk-cache: true - disk-cache: ${{ github.workflow }} - repository-cache: true - - - name: "Build with Bazel" - run: bazel build ... - - - name: "Tests with Bazel" - run: bazel run tests - # make sure coverage is only enabled for Debug builds, since it sets -O0 # to make sure coverage has meaningful results - name: "Configure CMake" diff --git a/MODULE.bazel b/MODULE.bazel index af988d1e..0d393c61 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -13,8 +13,8 @@ bazel_dep(name = "bazel_skylib", version = "1.7.1") bazel_dep(name = "googletest", version = "1.15.2") # Toolchain deps. -#cc_configure = use_extension( -#"@rules_cc//bzlmod:extensions.bzl", -#"cc_configure", -#) -#use_repo(cc_configure, "local_config_cc_toolchains") +cc_configure = use_extension( + "@rules_cc//bzlmod:extensions.bzl", + "cc_configure", +) +use_repo(cc_configure, "local_config_cc_toolchains")