Debian Codegraph @

.github/workflows/cxx03-ubuntu.yaml

raw
1 name: C++03 (old compat)
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=OFF -DUSE_CXX_STD=c++03 -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 # That below is likely SonarQube remains, which was removed earlier.
21 #run: cd _build && build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build .
22 run: cd _build && cmake --build .
23 - name: test
24 run: |
25 cd _build && ctest --extra-verbose
26 - name: codecov
27 run: |
28 source ./scripts/collect-gcov.sh
29 bash <(curl -s https://codecov.io/bash)