From 7611de2ea1dcd3e45086f699a71c8b6589da0aae Mon Sep 17 00:00:00 2001 From: Charles Nicholson Date: Fri, 29 Dec 2023 12:37:48 -0500 Subject: [PATCH] matrix clang --- .github/workflows/presubmit.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index e8e56b5..38ec842 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -46,7 +46,7 @@ jobs: - name: Build run: arm-none-eabi-gcc -mcpu=cortex-m4 -Os -Werror -Wall -Wextra -Wconversion -c cobs.c - linux-gcc: + linux: runs-on: ubuntu-latest permissions: @@ -61,11 +61,12 @@ jobs: strategy: matrix: architecture: [32, 64] + compiler_env: ["CC=gcc CXX=g++", "CC=clang CXX=clang++"] steps: - uses: actions/checkout@v3 - name: Build - run: COBS_LINUXARCH=${{ matrix.architecture }} make -j + run: ${{ matrix.compiler_env }} COBS_LINUXARCH=${{ matrix.architecture }} make -j macos: runs-on: macos-latest