Skip to content

Update actions to run both clang and GCC #2

Update actions to run both clang and GCC

Update actions to run both clang and GCC #2

name: Verify PR
on: [pull_request]
jobs:
run-bazel-tests:
name: "Run Bazel tests"
runs-on: ubuntu-latest
strategy:
matrix:
cpp-compiler: ["clang", "gcc"]
steps:
- uses: actions/checkout@v4
- uses: bazel-contrib/[email protected]
with:
bazelisk-cache: true
disk-cache: "verify-pr:run-bazel-tests:${{ matrix.cpp-compiler }}"
repository-cache: true
- run: echo "CC=${{ matrix.cpp-compiler }}" >> $GITHUB_ENV
- run: bazel test ...