[llvm] [CI] Add Basic Bazel Checks (PR #153740)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 14 21:05:04 PDT 2025
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/153740
Having basic checks (like running buildifier) on the upstream bazel files would be helpful for contributors maintaining the bazel build. Add basic checks (currently just buildifier) to a workflow that runs whenever the bazel build files change.
>From f366fd38feb1a773d73609b57d7789377cb2a1f1 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Fri, 15 Aug 2025 04:03:56 +0000
Subject: [PATCH] [CI] Add Basic Bazel Checks
Having basic checks (like running buildifier) on the upstream bazel
files would be helpful for contributors maintaining the bazel build. Add
basic checks (currently just buildifier) to a workflow that runs
whenever the bazel build files change.
---
.github/workflows/bazel-checks.yml | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
create mode 100644 .github/workflows/bazel-checks.yml
diff --git a/.github/workflows/bazel-checks.yml b/.github/workflows/bazel-checks.yml
new file mode 100644
index 0000000000000..94a578d09f209
--- /dev/null
+++ b/.github/workflows/bazel-checks.yml
@@ -0,0 +1,29 @@
+name: Bazel Checks
+
+permissions:
+ contents: read
+
+on:
+ push:
+ paths:
+ - '.github/workflows/bazel-checks.yml'
+ - 'utils/bazel/**'
+ branches:
+ - main
+ pull_requests:
+ paths:
+ - '.github/workflows/bazel-checks.yml'
+ - 'utils/bazel/**'
+
+jobs:
+ buildifier:
+ name: "Buildifier"
+ runs-on: ubuntu-24.04
+ if: github.repository == 'llvm/llvm-project'
+ steps:
+ - name: Fetch LLVM sources
+ uses: actions/checkout at 08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
+ - name: Setup Buildifier
+ run: |
+ go install github.com/bazelbuild/buildtools/buildifier at 8.2.1
+ buildifier -r utils/bazel
More information about the llvm-commits
mailing list