From 7aabc19977391570073029ddb7802b95bf2dddc0 Mon Sep 17 00:00:00 2001 From: Gold856 <117957790+Gold856@users.noreply.github.com> Date: Sun, 28 Sep 2025 01:50:21 -0400 Subject: [PATCH] [bazel] Update Bazel to 8.4.1 to fix Windows builds (#8258) - Fix missing epilogue deps - Compress debug info to save space in CI --- .bazelversion | 2 +- .github/workflows/bazel.yml | 2 +- epilogue-runtime/BUILD.bazel | 2 ++ shared/bazel/compiler_flags/linux_flags.rc | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.bazelversion b/.bazelversion index 56b6be4ebb..6da4de57dc 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -8.3.1 +8.4.1 diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml index b9929d415e..1a99e22fbf 100644 --- a/.github/workflows/bazel.yml +++ b/.github/workflows/bazel.yml @@ -32,7 +32,7 @@ jobs: token: ${{ secrets.BUILDBUDDY_API_KEY }} - name: bazel ${{ matrix.action }} - run: bazel --output_user_root=C:\\bazelroot ${{ matrix.action }} -k ... --config=ci ${{ matrix.config }} --verbose_failures + run: bazel ${{ matrix.action }} -k ... --config=ci ${{ matrix.config }} --verbose_failures shell: bash build-mac: diff --git a/epilogue-runtime/BUILD.bazel b/epilogue-runtime/BUILD.bazel index 71398ae89e..51a7d42076 100644 --- a/epilogue-runtime/BUILD.bazel +++ b/epilogue-runtime/BUILD.bazel @@ -11,6 +11,7 @@ wpilib_java_library( "//ntcore:ntcore-java", "//wpiunits:wpiunits-java", "//wpiutil:wpiutil-java", + "@maven//:us_hebi_quickbuf_quickbuf_runtime", ], ) @@ -19,6 +20,7 @@ wpilib_java_junit5_test( srcs = glob(["src/test/java/**/*.java"]), deps = [ ":epilogue-java", + "//wpimath:wpimath-java", "//wpiutil:wpiutil-java", "@maven//:us_hebi_quickbuf_quickbuf_runtime", ], diff --git a/shared/bazel/compiler_flags/linux_flags.rc b/shared/bazel/compiler_flags/linux_flags.rc index c424db4bdb..354a93da29 100644 --- a/shared/bazel/compiler_flags/linux_flags.rc +++ b/shared/bazel/compiler_flags/linux_flags.rc @@ -4,7 +4,7 @@ # Start with configuring the autodetected toolchain. # The target toolchain should be captured already in its toolchain. -common:linux --repo_env=BAZEL_COPTS="-Wall:-Wextra:-Werror" +common:linux --repo_env=BAZEL_COPTS="-Wall:-Wextra:-Werror:-gz=zlib" # C++ only common:linux --repo_env=BAZEL_CXXOPTS="-std=c++20:-Wformat=2:-pedantic:-Wno-psabi:-Wno-unused-parameter:-fPIC:-pthread:-Wno-deprecated-enum-enum-conversion"