Update actions to run both clang and GCC #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Bazel tests | |
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 }} | |
repository-cache: true | |
- run: echo "CC=${{ matrix.cpp-compiler }}" >> $GITHUB_ENV | |
- run: bazel --subcommands test ... |