Skip to content

github/ci: allowing workflow to run in cmake-dev branch #267

github/ci: allowing workflow to run in cmake-dev branch

github/ci: allowing workflow to run in cmake-dev branch #267

Workflow file for this run

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 }}