⚗️ try to use Clang 10

pull/2550/head
Niels Lohmann 2020-12-29 20:21:43 +01:00
parent 433da31334
commit ca51dc62f2
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
1 changed files with 21 additions and 1 deletions

View File

@ -3,7 +3,7 @@ name: Ubuntu
on: [push, pull_request]
jobs:
build:
gcc_build:
runs-on: ubuntu-latest
steps:
@ -22,3 +22,23 @@ jobs:
run: cmake --build build --parallel 10
- name: test
run: cd build ; ctest -j 10 --output-on-failure
clang_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install_gcc
run: |
sudo apt update
sudo apt install clang-10
shell: bash
- name: cmake
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On
env:
CC: clang-10
CXX: clang++-10
- name: build
run: cmake --build build --parallel 10
- name: test
run: cd build ; ctest -j 10 --output-on-failure