diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-05-13 09:35:38 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-05-13 09:35:38 -0700 |
commit | 57dc0a982489a92f5c010bc4962c929de5f20c70 (patch) | |
tree | 42a3aa7fd23abc3a23d8088d7534a9208e45551c /.github/workflows | |
parent | 99bb5523b756c43ce7de6ee4606ed89a2d4d41b9 (diff) |
CI: change shared to cmark_opts in matrix, add linter.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ci.yml | 34 |
1 files changed, 22 insertions, 12 deletions
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 |