From 71a49717c83cc780f16609bd3ec2c054ea519019 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Mon, 16 Aug 2021 18:11:35 -0700 Subject: [PATCH] Add macOS and GCC tests. --- .github/workflows/bazel_tests.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bazel_tests.yml b/.github/workflows/bazel_tests.yml index 6bc6ed80d7..f89cefeb94 100644 --- a/.github/workflows/bazel_tests.yml +++ b/.github/workflows/bazel_tests.yml @@ -12,16 +12,21 @@ on: jobs: ubuntu: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: include: - - { flags: "" } - - { flags: "--//:fasttable_enabled=true -- -cmake:test_generated_files" } - - { flags: "--config=asan -- -benchmarks:benchmark" } + - { CC: clang os: ubuntu-20.04 flags: "" } + # Some warnings only fire with -c opt + - { CC: clang os: ubuntu-20.04 flags: "-c opt" } + - { CC: gcc os: ubuntu-20.04 flags: "-c opt" } + + - { CC: clang os: ubuntu-20.04 flags: "--//:fasttable_enabled=true -- -cmake:test_generated_files" } + - { CC: clang os: ubuntu-20.04 flags: "--config=asan -- -benchmarks:benchmark" } + - { CC: clang os: macos-11 flags: "" } steps: - uses: actions/checkout@v2 - name: Run tests - run: cd ${{ github.workspace }} && bazel test ... ${{ matrix.flags }} + run: cd ${{ github.workspace }} && CC=${{ matrix.CC }} bazel test ... ${{ matrix.flags }}