Skip to content

Fix: some tsan issues #112

Fix: some tsan issues

Fix: some tsan issues #112

Workflow file for this run

#
# 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 gcc-13 g++-13 clang-15 clang++-15
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 90
sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-15 999
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 999
sudo update-alternatives --install /usr/bin/clang clang /usr/lib/llvm-15/bin/clang-15 999
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-15 999
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 90
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 90
sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-13 90
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install scikit-build
sudo python3 -m pip install cmake==3.25 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/codecov-action@v1.2.1
with:
files: build-coverage/coverage.xml
verbose: false