From a20930e5b664a0edc163feee375817a69ef4730f Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Fri, 15 Jan 2021 18:06:58 -0500 Subject: [PATCH] [client] build with both GCC and Clang in Github Actions This will let us catch issues that only one compiler wouldn't. --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7282a9f5..d5227a3d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,9 @@ on: [push, pull_request] jobs: client: runs-on: ubuntu-20.04 + strategy: + matrix: + cc: [gcc, clang] steps: - uses: actions/checkout@v1 with: @@ -16,7 +19,7 @@ jobs: run: | mkdir client/build cd client/build - cmake .. + CC=/usr/bin/${{ matrix.cc }} cmake .. - name: Build client run: | cd client/build