Skip to content

Commit

Permalink
github/ci: migrating coverage action to cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaeddert committed Dec 21, 2024
1 parent d5acea5 commit 70c5d7b
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,31 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Setup gcovr (Linux)
if: runner.os == 'Linux'
- name: Setup environment (macOS)
if: runner.os == 'macos'
run: |
sudo apt-get update --fix-missing
sudo apt-get install -y gcovr
brew update
brew install cmake virtualenv
#- name: Setup gcovr (macOS)
# if: runner.os == 'macOS'
# run: brew install gcovr
- name: Setup environment (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get install -y --no-install-recommends build-essential virtualenv
#- name: Setup libfec
# run: git clone https://github.com/jgaeddert/libfec.git && cd libfec && ./configure && make && sudo make install

- name: bootstrap
run: ./bootstrap.sh

- name: configure
run: ./configure --enable-coverage

- name: make
run: make -j 2
- name: build
run: |
mkdir build
cd build
cmake -DBUILD_AUTOTESTS=ON -DCOVERAGE=ON -DBUILD_BENCHMARKS=OFF -DBUILD_EXAMPLES=OFF ..
make -j2
- name: make coverage
run: make -j 2 coverage
- name: check
run: |
cd build
./xautotest -v -o autotest.json
- name: upload report to codecov with github action
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit 70c5d7b

Please sign in to comment.