-
Notifications
You must be signed in to change notification settings - Fork 82
42 lines (42 loc) · 1.13 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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=all --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