Update - Some refactoring. (naming) #7
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: ci | |
on: | |
push: | |
branches: | |
- master | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
path: main | |
submodules: true | |
- name: install deps | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt update | |
sudo apt install -y cmake g++ | |
- name: install cpp-coveralls | |
run: | | |
pip install --user cpp-coveralls | |
- name: build | |
working-directory: ./main | |
run: | | |
make WITH_COVERAGE=1 | |
- name: test | |
working-directory: ./main | |
run: | | |
cd testpp && ./run.sh | |
- name: generate gcov results | |
working-directory: ./main | |
run: | | |
make gcov | |
- name: upload to coveralls | |
working-directory: ./main | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
run: | | |
coveralls -n --include threadmgr --include threadmgrpp |