forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 851 Bytes
/
bazel-checks.yml
File metadata and controls
32 lines (29 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Bazel Checks
permissions:
contents: read
on:
push:
paths:
- '.github/workflows/bazel-checks.yml'
- 'utils/bazel/**'
branches:
- main
pull_request:
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Buildifier
run: |
sudo curl -L https://github.com/bazelbuild/buildtools/releases/download/v8.2.1/buildifier-linux-amd64 -o /usr/bin/buildifier
sudo chmod +x /usr/bin/buildifier
- name: Run Buildifier
run: |
buildifier --mode=check $(find ./utils/bazel -name *BUILD*)