Fix: some tsan issues #90
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
# | |
# Copyright Soramitsu Co., 2021-2023 | |
# Copyright Quadrivium Co., 2023 | |
# All Rights Reserved | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
name: Coverage | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
coverage: | |
name: "codecov" | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v1 | |
with: | |
submodules: true | |
clean: true | |
fetch-depth: 2 | |
- name: "install dependencies" | |
run: | | |
set -e | |
sudo apt-get update || true | |
sudo apt-get install -y ninja-build gcovr | |
sudo python3 -m pip install --upgrade pip | |
sudo pip3 install scikit-build | |
sudo pip3 install cmake requests gitpython gcovr pyyaml | |
- name: "cmake" | |
env: | |
CC: clang | |
CXX: clang++ | |
run: | | |
cmake . -Bbuild-coverage -DCOVERAGE=ON -DEXAMPLES=OFF | |
cmake --build build-coverage | |
- name: "build report" | |
env: | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
run: cmake --build build-coverage --target coverage -- -j4 | |
- name: "upload" | |
uses: codecov/[email protected] | |
with: | |
files: build-coverage/coverage.xml | |
verbose: false |