From 57dc0a982489a92f5c010bc4962c929de5f20c70 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 13 May 2020 09:35:38 -0700 Subject: CI: change shared to cmark_opts in matrix, add linter. --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e057fda..14c0ce4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,22 +3,32 @@ name: CI tests on: [push, pull_request] jobs: + + linter: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: clang-tidy check + uses: muxee/clang-tidy-action@0.0.1-rc1 + linux: runs-on: ubuntu-latest strategy: fail-fast: false matrix: - shared: - - ON - - OFF + cmake_opts: + - '-DCMARK_SHARED=ON' + - '' compiler: - c: 'clang' cpp: 'clang++' - c: 'gcc' cpp: 'g++' env: - CMAKE_OPTIONS: -DCMARK_SHARED=${{ matrix.shared }} + CMAKE_OPTIONS: ${{ matrix.cmake_opts }} CC: ${{ matrix.compiler.c }} CXX: ${{ matrix.compiler.cpp }} steps: @@ -38,16 +48,16 @@ jobs: strategy: fail-fast: false matrix: - shared: - - ON - - OFF + cmake_opts: + - '-DCMARK_SHARED=ON' + - '' compiler: - c: 'clang' cpp: 'clang++' - c: 'gcc' cpp: 'g++' env: - CMAKE_OPTIONS: -DCMARK_SHARED=${{ matrix.shared }} + CMAKE_OPTIONS: ${{ matrix.cmake_opts }} CC: ${{ matrix.compiler.c }} CXX: ${{ matrix.compiler.cpp }} @@ -66,11 +76,11 @@ jobs: strategy: fail-fast: false matrix: - shared: - - ON - - OFF + cmake_opts: + - '-DCMARK_SHARED=ON' + - '' env: - CMAKE_OPTIONS: -DCMARK_SHARED=${{ matrix.shared }} + CMAKE_OPTIONS: ${{ matrix.cmake_opts }} steps: - uses: actions/checkout@v1 -- cgit v1.2.3