【腾讯犀牛鸟开源课题实战】对接mysql sdk(主框架变动部分) #804
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: '0 17 * * *' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
compile-with-bazel: | |
runs-on: [self-hosted, trpc-cpp-ci] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Test | |
run: | | |
./clean.sh | |
bazel coverage //trpc/... --test_output=errors --coverage_report_generator="@bazel_tools//tools/test/CoverageOutputGenerator/java/com/google/devtools/coverageoutputgenerator:Main" --combined_report=lcov --nocache_test_results | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
file: bazel-out/_coverage/_coverage_report.dat | |
- name: Run Examples | |
run: ./run_examples.sh | |
compile-with-cmake: | |
runs-on: [self-hosted, trpc-cpp-ci] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Make | |
run: | | |
mkdir build | |
cd build | |
cmake .. | |
make -j8 | |
- name: Run Examples | |
run: ./run_examples_cmake.sh | |
code-check: | |
runs-on: [self-hosted, trpc-cpp-ci] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Check | |
run: | | |
./clean.sh | |
bazel build //trpc/... --copt=-Wreturn-type --copt=-Wall --copt=-Wextra |