Skip to content

[refactor] porting back the http2 part code #98

[refactor] porting back the http2 part code

[refactor] porting back the http2 part code #98

name: CI for linux by xmake
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
jobs:
build:
name: Build standard
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
# The version to use. Should be a semver range or 'latest'. Or use branch@{branch_name} to select a branch.
xmake-version: latest
- name: Update apt
run: sudo apt update -y
- name: Install dependencies
run: sudo apt install -y lcov
- name: Configure
run: xmake f -m coverage --use_fmt=y -y
- name: Build
run: xmake -y
- name: Run Test and collect coverage
run: xmake test -v
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}