Skip to content

Commit fc3aa38

Browse files
ci: add basic build job
1 parent 0e27a80 commit fc3aa38

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
working-directory: ./examples/google_benchmark
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Install dependencies
18+
run: sudo apt-get update && sudo apt-get install -y build-essential cmake
19+
20+
- run: mkdir build
21+
22+
- name: Build google_benchmark instrumentation
23+
run: cd build && cmake -DCODSPEED_MODE=instrumentation .. && make -j
24+
25+
- name: Build google_benchmark walltime
26+
run: cd build && cmake -DCODSPEED_MODE=walltime .. && make -j

0 commit comments

Comments
 (0)