-
Notifications
You must be signed in to change notification settings - Fork 10
43 lines (33 loc) · 1015 Bytes
/
cpp-bench.yml
File metadata and controls
43 lines (33 loc) · 1015 Bytes
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: Bazel CPP Benchmarks
on:
workflow_run:
workflows: ["Bazel Build"]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Bazelisk
uses: bazelbuild/setup-bazelisk@v3
- name: Mount Bazel cache
uses: actions/cache@v5
with:
path: ~/.cache/bazel
key: bazel-${{ runner.os }}-build
- name: Install required libraries
run: |
sudo apt-get update
sudo apt-get install -y libtinfo6
- name: Clone tree-sitter language repo
run: |
git clone https://github.com/tree-sitter/tree-sitter.git
git clone https://github.com/tree-sitter/tree-sitter-cpp.git
- name: Setup build
run: |
mv build-support/tree-sitter.bazel tree-sitter/BUILD.bazel
mv build-support/tree-sitter-cpp.bazel tree-sitter-cpp/BUILD.bazel
- name: Run HHDS tests
run: bazel test //hhds:traversal_deep_bench