diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index c5542c86..c7744fc4 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -2,9 +2,9 @@ name: C/C++ CI on: push: - branches: [ master, develop, issue-* ] + branches: [ master, develop, refactoring, issue-* ] pull_request: - branches: [ master, develop ] + branches: [ master, develop, refactoring ] jobs: build: @@ -12,10 +12,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: cmake + - name: Checkout Code + uses: actions/checkout@v2 + + - name: Configure run: cmake -DCMAKE_BUILD_TYPE=Release -DLIBIPC_BUILD_TESTS=ON . - - name: make + + - name: Build run: make -j - - name: test - run: export LD_LIBRARY_PATH=./lib:$LD_LIBRARY_PATH && ./bin/test-ipc + + - name: Test + env: + LD_LIBRARY_PATH: ./lib + run: ./bin/test-ipc diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 00000000..e10e8923 --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,34 @@ +name: Upload CodeCov Report + +on: + push: + branches: [ refactoring ] + pull_request: + branches: [ refactoring ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + + - name: Configure + run: cmake -DCMAKE_BUILD_TYPE=Debug -DLIBIPC_BUILD_TESTS=ON -DLIBIPC_CODECOV=ON . + + - name: Build + run: make -j + + - name: Test + env: + LD_LIBRARY_PATH: ./lib + run: ./bin/test-ipc + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + verbose: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.gitignore b/.gitignore index 9bca0610..0f34e242 100644 --- a/.gitignore +++ b/.gitignore @@ -43,8 +43,5 @@ target_wrapper.* CMakeLists.txt.user* # My output files -build - -# vs -.vs -.vscode \ No newline at end of file +build* +.* \ No newline at end of file diff --git a/3rdparty/capo/make.hpp b/3rdparty/capo/make.hpp deleted file mode 100755 index 908849ce..00000000 --- a/3rdparty/capo/make.hpp +++ /dev/null @@ -1,22 +0,0 @@ -/* - The Capo Library - Code covered by the MIT License - Author: mutouyun (http://orzz.org) -*/ - -#pragma once - -#include // std::decay -#include // std::forward - -namespace capo -{ - template