Skip to content

Commit

Permalink
Add other Bazel checks
Browse files Browse the repository at this point in the history
  • Loading branch information
armandomontanez committed Oct 4, 2024
1 parent 9538898 commit bef7148
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/bazel_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,36 @@ jobs:
run: python3 tools/bazel_build.py --picotool-dir=lib/picotool
- name: Bazel Picotool backwards compatibility
run: bazel build @picotool//:picotool

other-bazel-checks:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get Bazel
uses: bazel-contrib/setup-bazel@0.9.0
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }}
# Share repository cache between workflows.
repository-cache: true
# Only needed to drive the presbumit scripts.
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Fetch latest Picotool
uses: actions/checkout@v4
with:
repository: raspberrypi/picotool
ref: develop
fetch-depth: 0
path: lib/picotool
- name: Ensure build system configurations options match
run: python3 tools/compare_build_systems.py
- name: Ensure source files are present in Bazel build
run: python3 tools/check_source_files_in_bazel_build.py --picotool-dir=lib/picotool

0 comments on commit bef7148

Please sign in to comment.