Update workflow.

This commit is contained in:
ArthurSonzogni 2025-04-24 14:29:21 +02:00
parent f69adb605a
commit d6006d3475
No known key found for this signature in database
GPG Key ID: 41D98248C074CD6C
2 changed files with 7 additions and 20 deletions

View File

@ -12,7 +12,7 @@ on:
jobs: jobs:
test_bazel: test_bazel:
name: "Bazel tests" name: "Test Bazel"
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -60,7 +60,7 @@ jobs:
run: bazel run tests run: bazel run tests
test_cmake: test_cmake:
name: "CMake tests" name: "Tests CMake"
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -104,19 +104,6 @@ jobs:
gcovr: "5.0" gcovr: "5.0"
opencppcoverage: true 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 # make sure coverage is only enabled for Debug builds, since it sets -O0
# to make sure coverage has meaningful results # to make sure coverage has meaningful results
- name: "Configure CMake" - name: "Configure CMake"

View File

@ -13,8 +13,8 @@ bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "googletest", version = "1.15.2") bazel_dep(name = "googletest", version = "1.15.2")
# Toolchain deps. # Toolchain deps.
#cc_configure = use_extension( cc_configure = use_extension(
#"@rules_cc//bzlmod:extensions.bzl", "@rules_cc//bzlmod:extensions.bzl",
#"cc_configure", "cc_configure",
#) )
#use_repo(cc_configure, "local_config_cc_toolchains") use_repo(cc_configure, "local_config_cc_toolchains")