Skip to content

[misc] rewrite the impl of the dyn traits #125

[misc] rewrite the impl of the dyn traits

[misc] rewrite the impl of the dyn traits #125

name: CI for linux by xmake
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
jobs:
build:
name: Build ${{ matrix.backend }}
runs-on: ubuntu-latest
strategy:
matrix:
backend: [epoll, io_uring]
include:
- backend: epoll
config_args: ""
- backend: io_uring
config_args: "--use_io_uring=y"
steps:
- uses: actions/checkout@v2
- name: setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
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 ${{ matrix.config_args }} -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 }}