forked from improbable-eng/phtree-cpp
-
Notifications
You must be signed in to change notification settings - Fork 9
46 lines (35 loc) · 907 Bytes
/
bazel.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
44
45
46
name: Bazel build
on: [ push ]
jobs:
build:
name: Run bazel
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup bazel
uses: bazelbuild/setup-bazelisk@v2
# This causes build failures
# - name: Mount bazel cache # Optional
# uses: actions/cache@v3
# with:
# path: "~/.cache/bazel"
# key: bazel
- name: Clang format
shell: bash
run: ./ci/linting/clang-format.sh
- name: Bazel format
shell: bash
run: ./ci/linting/buildifier.sh
- name: Build
shell: bash
run: bazel build ...
- name: Test
shell: bash
run: bazel test ...
- name: Test
shell: bash
run: bazel test //test:phtree_test --config=asan