From e9483aa21818300007782c7b9d935e5360ceb08b Mon Sep 17 00:00:00 2001 From: Jason Graffius Date: Wed, 31 Jul 2024 12:07:29 -0400 Subject: [PATCH] Update actions to run both clang and GCC --- .github/workflows/run-bazel-tests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/run-bazel-tests.yml b/.github/workflows/run-bazel-tests.yml index 0a37bb9..d797a99 100644 --- a/.github/workflows/run-bazel-tests.yml +++ b/.github/workflows/run-bazel-tests.yml @@ -3,7 +3,11 @@ 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/setup-bazel@0.8.5 @@ -11,4 +15,5 @@ jobs: bazelisk-cache: true disk-cache: ${{ github.workflow }} repository-cache: true + - run: echo "CC=${{ matrix.cpp-compiler }}" >> $GITHUB_ENV - run: bazel test ... \ No newline at end of file