Skip to content

Commit

Permalink
Add clang as a compiler for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
peadar committed Jun 13, 2024
1 parent 5e08a34 commit 2f4c5ef
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f4c5ef

Please sign in to comment.