Skip to content

Commit

Permalink
Update actions to run both clang and GCC
Browse files Browse the repository at this point in the history
Additionally, tweak workflow to ensure caching remains valid across the
matrix.
  • Loading branch information
jasongraffius committed Jul 31, 2024
1 parent 084992d commit 8efef29
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: Run Bazel tests
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: ${{ github.workflow }}
disk-cache: "verify-pr:run-bazel-tests:${{ matrix.cpp-compiler }}"
repository-cache: true
- run: echo "CC=${{ matrix.cpp-compiler }}" >> $GITHUB_ENV
- run: bazel test ...

0 comments on commit 8efef29

Please sign in to comment.