这是indexloc提供的服务,不要输入任何密码
Skip to content

[Release] bump version to 2.0.2 #92

[Release] bump version to 2.0.2

[Release] bump version to 2.0.2 #92

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
pull_request:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v3
- name: Update submodules
run: git submodule update --init --recursive
- name: Configure and build
run: mkdir build && cd build && cmake .. && cmake --build .
# This workflow contains a single job called "build"
test:
# The type of runner that the job will run on
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v3
- name: Update submodules
run: git submodule update --init --recursive
- name: Install tools
run: sudo apt-get update && sudo apt-get install -y lcov
- name: Configure and build
run: mkdir build && cd build && cmake -DBUILD_TESTING=ON -DCOVERAGE_CHECK=on .. && cmake --build .
- name: Run tests
run: cd ./build && make test
- name: Collect coverage data
run: /usr/bin/lcov --directory ./build --capture --output-file ./build/coverage.info && /usr/bin/lcov --remove ./build/coverage.info "/usr/*" "*/googletest/googletest/*" "*/tests/unit_test/*" --output-file ./build/coverage.info
- name: Show coverage summary
run: /usr/bin/lcov --list ./build/coverage.info
- name: Upload report to codecov
run: bash <(curl -s https://codecov.io/bash) -f ./build/coverage.info