| 1 |
name: C++11 |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ "master", "dev" ] |
| 6 |
pull_request: |
| 7 |
branches: [ "master", "dev" ] |
| 8 |
types: [opened, synchronize, reopened] |
| 9 |
jobs: |
| 10 |
build: |
| 11 |
name: ubuntu |
| 12 |
runs-on: ubuntu-latest |
| 13 |
steps: |
| 14 |
- uses: actions/checkout@v3 |
| 15 |
- name: configure |
| 16 |
run: | |
| 17 |
mkdir _build && cd _build |
| 18 |
cmake ../ -DCMAKE_COMPILE_WARNING_AS_ERROR=ON -DENABLE_STDCXX_SYNC=ON -DENABLE_ENCRYPTION=ON -DENABLE_UNITTESTS=ON -DENABLE_BONDING=ON -DENABLE_TESTING=ON -DENABLE_EXAMPLES=ON -DENABLE_CODE_COVERAGE=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON |
| 19 |
- name: build |
| 20 |
run: cd _build && cmake --build . |
| 21 |
- name: test |
| 22 |
run: | |
| 23 |
cd _build && ctest --extra-verbose |
| 24 |
- name: codecov |
| 25 |
run: | |
| 26 |
source ./scripts/collect-gcov.sh |
| 27 |
bash <(curl -s https://codecov.io/bash) |