CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
75 lines
2.6 KiB
YAML
75 lines
2.6 KiB
YAML
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
- name: Setup Buildifier
|
|
run: |
|
|
sudo curl -L https://github.com/bazelbuild/buildtools/releases/download/v8.2.1/buildifier-linux-amd64 -o /usr/bin/buildifier --fail
|
|
sudo chmod +x /usr/bin/buildifier
|
|
- name: Run Buildifier
|
|
run: |
|
|
BZL_FILES=$(find ./utils/bazel -name *BUILD* -o -name '*bzl' -o -name '*.bazel')
|
|
if ! buildifier --mode=check $BZL_FILES; then
|
|
echo "::error::Buildifier formatting issues found."
|
|
echo "::group::Buildifier Diff"
|
|
buildifier --mode=diff $BZL_FILES
|
|
echo "::endgroup::"
|
|
exit 1
|
|
else
|
|
echo "All files are formatted correctly."
|
|
fi
|
|
|
|
bazel-build:
|
|
name: "Bazel Build/Test"
|
|
# Only run on US Central workers so we only have to keep one cache warm as
|
|
# the cache buckets are per cluster.
|
|
runs-on:
|
|
group: llvm-premerge-cluster-us-central
|
|
labels: llvm-premerge-linux-runners
|
|
if: github.repository == 'llvm/llvm-project'
|
|
steps:
|
|
- name: Fetch LLVM sources
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
# TODO(boomanaiden154): We should use a purpose built container for this. Move
|
|
# over when we have fixed the issues with using custom containers with Github
|
|
# ARC in GKE.
|
|
- name: Setup System Dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libmpfr-dev libpfm4-dev m4 libedit-dev
|
|
sudo curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.27.0/bazelisk-amd64.deb --fail > /tmp/bazelisk.deb
|
|
sudo apt-get install -y /tmp/bazelisk.deb
|
|
rm /tmp/bazelisk.deb
|
|
- name: Build/Test
|
|
working-directory: utils/bazel
|
|
run: |
|
|
bazelisk test --config=ci --sandbox_base="" \
|
|
--remote_cache=https://storage.googleapis.com/$CACHE_GCS_BUCKET-bazel \
|
|
--google_default_credentials \
|
|
@llvm-project//... //...
|