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 ce74224
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/run-bazel-tests.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/verify-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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 ...

0 comments on commit ce74224

Please sign in to comment.