github/ci: allowing workflow to run in cmake-dev branch #267
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: Code Coverage CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- master | |
- coverage-dev | |
- cmake-dev | |
jobs: | |
standard: | |
strategy: | |
fail-fast: false | |
matrix: | |
runs-on: [ubuntu-latest] | |
name: "💦 ${{ matrix.runs-on }}" | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup environment (macOS) | |
if: runner.os == 'macos' | |
run: | | |
brew update | |
brew install cmake virtualenv | |
- 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: build | |
run: | | |
mkdir build | |
cd build | |
cmake -DBUILD_AUTOTESTS=ON -DCOVERAGE=ON -DBUILD_BENCHMARKS=OFF -DBUILD_EXAMPLES=OFF .. | |
make -j2 | |
- name: check | |
run: | | |
cd build | |
./xautotest -v -o autotest.json | |
- name: upload report to codecov with github action | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
verbose: true | |
token: ${{ secrets.CODECOV_TOKEN }} |