daemon: refactor IPC usage #527
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CMake | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
BUILD_TYPE: Release | |
WITH_DLT_COVERAGE: ON | |
WITH_DLT_SHM_ENABLE: ON | |
DLT_IPC: "UNIX_SOCKET" | |
BUILD_GMOCK: OFF | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare submodule | |
run: | | |
git submodule init | |
git submodule update | |
- name: Configure CMake | |
run: | | |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ | |
-DWITH_DLT_COVERAGE=${{env.WITH_DLT_COVERAGE}} \ | |
-DWITH_DLT_SHM_ENABLE=${{env.WITH_DLT_SHM_ENABLE}} \ | |
-DDLT_IPC=${{env.DLT_IPC}} \ | |
-DBUILD_GMOCK=${{env.BUILD_GMOCK}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{env.BUILD_TYPE}} --rerun-failed --output-on-failure | |
- name: Install dependencies | |
run: sudo apt-get install lcov | |
- name: Generate lcov report | |
working-directory: ${{github.workspace}} | |
run: bash util/dlt_coverage_report/lcov_report_generator.sh build -xe | |
- name: Archive coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dlt_coverage_report | |
path: ${{github.workspace}}/dlt_lcov_report | |
- name: Upload lcov report | |
if: github.ref == 'refs/heads/master' | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git checkout -b dlt_coverage_report | |
git submodule deinit -f googletest | |
rm -rf .git/modules/googletest | |
git rm -f googletest | |
git add --all | |
git commit -m "Upload lcov report for dlt-daemon" | |
git push -f origin dlt_coverage_report |