2020-05-12 18:26:17 +00:00
|
|
|
name: Ubuntu
|
2019-09-02 19:35:53 +00:00
|
|
|
|
2020-05-18 12:01:54 +00:00
|
|
|
on: [push, pull_request]
|
2019-09-02 19:35:53 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-12-29 19:21:43 +00:00
|
|
|
gcc_build:
|
2019-09-02 19:35:53 +00:00
|
|
|
runs-on: ubuntu-latest
|
2020-05-12 18:26:17 +00:00
|
|
|
|
2019-09-02 19:35:53 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-12-29 19:16:51 +00:00
|
|
|
- name: install_gcc
|
|
|
|
run: |
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install gcc-10 g++-10
|
|
|
|
shell: bash
|
2019-09-02 19:35:53 +00:00
|
|
|
- name: cmake
|
2020-05-27 11:22:14 +00:00
|
|
|
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On
|
2020-12-29 19:16:51 +00:00
|
|
|
env:
|
|
|
|
CC: gcc-10
|
|
|
|
CXX: g++-10
|
2019-09-02 20:15:11 +00:00
|
|
|
- name: build
|
2020-05-12 18:45:18 +00:00
|
|
|
run: cmake --build build --parallel 10
|
2019-09-02 20:15:11 +00:00
|
|
|
- name: test
|
2020-05-19 11:45:52 +00:00
|
|
|
run: cd build ; ctest -j 10 --output-on-failure
|
2020-12-29 19:21:43 +00:00
|
|
|
|
|
|
|
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
|
2020-12-29 19:30:50 +00:00
|
|
|
|
|
|
|
clang_build_cxx20:
|
|
|
|
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 -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_STANDARD_REQUIRED=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
|