Skip to content

Commit

Permalink
Add support for running bazel build in CI
Browse files Browse the repository at this point in the history
This patch adds support for running the bazel build in CI to easily
catch bazel build regressions. Running the bazel tests will be added in
a future patch.
  • Loading branch information
boomanaiden154 committed Oct 13, 2023
1 parent a4379c3 commit c8281b2
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,19 @@ jobs:
run: |
cd /tmp/cmake-build
ninja llvm-granite llvm-cm
check-bazel:
name: Run bazel build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache Bazel
uses: actions/cache@v3
with:
path: |
~/.cache/bazel
key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel') }}
restore-keys: |
${{ runner.os }}-bazel-
- name: Run build
run: bazel build ...

0 comments on commit c8281b2

Please sign in to comment.