forked from improbable-eng/phtree-cpp
-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (37 loc) · 984 Bytes
/
bazel-macos.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
47
48
name: Bazel MacOS AppleClang build
on: [ push ]
env:
CC: clang
CXX: clang++
jobs:
build:
name: Run bazel
runs-on: macos-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
# This causes build failures
# - name: Mount bazel cache # Optional
# uses: actions/cache@v3
# with:
# path: "~/.cache/bazel"
# key: bazel
# This is (sometimes?!?!) extremely slow on MacOS
# - 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