diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index a5ea16160..f9e426484 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -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