json/.github/workflows/ubuntu.yml

25 lines
533 B
YAML
Raw Normal View History

name: Ubuntu
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
2020-12-29 20:16:51 +01:00
- name: install_gcc
run: |
sudo apt update
sudo apt install gcc-10 g++-10
shell: bash
- name: cmake
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On
2020-12-29 20:16:51 +01:00
env:
CC: gcc-10
CXX: g++-10
2019-09-02 22:15:11 +02:00
- name: build
run: cmake --build build --parallel 10
2019-09-02 22:15:11 +02:00
- name: test
2020-05-19 13:45:52 +02:00
run: cd build ; ctest -j 10 --output-on-failure