| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
name: Build and Test |
| 16 |
|
| 17 |
on: |
| 18 |
push: |
| 19 |
branches: [main] |
| 20 |
pull_request: |
| 21 |
branches: [main] |
| 22 |
|
| 23 |
jobs: |
| 24 |
clang-format: |
| 25 |
runs-on: ubuntu-latest |
| 26 |
steps: |
| 27 |
- uses: actions/checkout@v2 |
| 28 |
- name: clang-format |
| 29 |
run: ci/clang-format.sh |
| 30 |
|
| 31 |
clang-tests: |
| 32 |
runs-on: ubuntu-latest |
| 33 |
steps: |
| 34 |
- uses: actions/checkout@v2 |
| 35 |
|
| 36 |
- name: bazel build |
| 37 |
run: CC=clang bazel build //... |
| 38 |
- name: bazel test |
| 39 |
run: CC=clang bazel test //... |
| 40 |
|
| 41 |
gcc-tests: |
| 42 |
runs-on: ubuntu-latest |
| 43 |
steps: |
| 44 |
- uses: actions/checkout@v2 |
| 45 |
|
| 46 |
- name: bazel build |
| 47 |
run: CC=gcc bazel build //... |
| 48 |
- name: bazel test |
| 49 |
run: CC=gcc bazel test //... |