Skip to content

Commit

Permalink
Gate PRs on CMake and bazel headers matching (#381)
Browse files Browse the repository at this point in the history
This will prevent future issues similar to #359 from occurring in the
first place.

Fixes #255.
  • Loading branch information
chiphogg authored Jan 21, 2025
1 parent 40b3226 commit 4543859
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/compare-cmake-and-bazel-headers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright 2025 Aurora Operations, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: compare-cmake-and-bazel-headers

on:
push:
branches:
- main
pull_request:

jobs:
compare-cmake-and-bazel-headers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b #v4.1.5
- name: Setup CMake
uses: jwlawson/actions-setup-cmake@802fa1a2c4e212495c05bf94dba2704a92a472be #v2.0.2
with:
cmake-version: '3.29.x'
- name: Set up python
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f #v5.1.1
with:
python-version: '3.10'
- name: Check that CMake headers match bazel headers
run: ./tools/bin/check-cmake-headers

0 comments on commit 4543859

Please sign in to comment.