diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index e83be07..73adc8a 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -2,19 +2,34 @@ name: C/C++ CI on: push: - branches: [ "master", "ci" ] + branches: [ "master", "clang-ci" ] pull_request: - branches: [ "master", "ci" ] + branches: [ "master", "clang-ci" ] jobs: - build: + build-gcc: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: configure - run: cmake -DCMAKE_BUILD_TYPE=Release + run: | + sudo apt install g++ + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ + - name: make + run: make + - name: make check + run: make check CTEST_OUTPUT_ON_FAILURE=TRUE + + build-clang: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: configure + run: | + sudo apt install clang\+\+ + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang\+\+ - name: make run: make - name: make check