Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shajoezhu committed Dec 22, 2024
1 parent 6705ee8 commit 979fa3a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x

- uses: actions/setup-python@v3
with:
python-version: 3.8
Expand Down Expand Up @@ -65,13 +70,6 @@ jobs:
echo "CXX=ccache clang++" >> $GITHUB_ENV
ccache --set-config=cache_dir=$HOME/.ccache
- name: align gcc gcov
if: matrix.name == 'ubuntu-gcc-9'
run: |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 90
sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.9 90
- name: Install python packages
run: python3 -mpip install cpp-coveralls cpplint

Expand Down Expand Up @@ -126,13 +124,13 @@ jobs:
run: if [ $TRAVIS_OS_NAME == linux ]; then cd docs/doxygen; doxygen Doxyfile; fi

- name: run coverage
if: matrix.name == 'ubuntu-gcc-9'
if: matrix.name == 'ubuntu-gcc-10'
run: |
tests/test-coverage-coverall.sh
# See: https://github.com/marketplace/actions/coveralls-github-action
- name: Coveralls
if: matrix.name == 'ubuntu-gcc-9'
if: matrix.name == 'ubuntu-gcc-10'
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion tests/test-coverage-coverall.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Generate gcov output
#make -mj
make -mj

# Generate html report
lcov --base-directory . --directory . --zerocounters -q
Expand Down

0 comments on commit 979fa3a

Please sign in to comment.