Skip to content

Commit

Permalink
Update actions to run both clang and GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongraffius committed Jul 31, 2024
1 parent 9c6d57f commit 6d5c80f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/run-bazel-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@ 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: "${{ github.workflow }}-${{ matrix.cpp-compiler }}"
repository-cache: true
- run: bazel test ...
- run: echo "CC=${{ matrix.cpp-compiler }}" >> $GITHUB_ENV
- run: bazel test --subcommands ...

0 comments on commit 6d5c80f

Please sign in to comment.