From e2cbde2061e06361913fb936aaf9cac2515aa968 Mon Sep 17 00:00:00 2001 From: David Vo Date: Sat, 22 Nov 2025 07:53:17 +1100 Subject: [PATCH] [ci] Use Java headers for macOS Bazel build (#8413) I'm not entirely sure why Java header compilation is disabled for the macOS build. But this option will be causing rebuilds to happen more often than strictly necessary. [Turbine](https://github.com/google/turbine) takes Java class sources and spits out .class files with all method bodies, and private fields and methods stripped. This provides a .jar with sufficient information on the classpath to build dependent Java libraries without depending on the implementation in the build graph. --- .github/workflows/bazel.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml index e438b1a0d6..b7c21f1e27 100644 --- a/.github/workflows/bazel.yml +++ b/.github/workflows/bazel.yml @@ -56,8 +56,6 @@ jobs: run: | if [[ "${{ matrix.os }}" == "windows-2022" ]]; then bazel --output_user_root=C:\\bazelroot ${{ matrix.action }} ... --config=ci -c opt --repo_env=WPI_PUBLISH_CLASSIFIER_FILTER='${{ matrix.classifier }}' - elif [[ "${{ matrix.os }}" == "macOS-15" ]]; then - bazel ${{ matrix.action }} ... --config=ci -c opt --nojava_header_compilation --repo_env=WPI_PUBLISH_CLASSIFIER_FILTER='${{ matrix.classifier }}' else bazel ${{ matrix.action }} ... --config=ci -c opt --repo_env=WPI_PUBLISH_CLASSIFIER_FILTER='${{ matrix.classifier }}' fi