-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 986 Bytes
/
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
43
name: ci
on:
pull_request:
push:
tags:
branches:
- main
jobs:
# We don't want to run clang-format as a presubmit requirement at this time,
# but here's all that's needed if that changes in the future:
#
# check_clang_format:
# name: Check clang-format
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v3
# - uses: DoozyX/[email protected]
# with:
# source: '.'
# extensions: 'h,cc'
# clangFormatVersion: 17
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup Cpp
uses: aminya/setup-cpp@v1
- name: Build and test
run: bazel test --test_output=errors ...
- name: Build and test with ASAN
run: bazel test --config=asan --copt=-Os --test_output=errors ...
- name: Shut down bazel
run: bazel shutdown