Skip to content

Commit 21463fe

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

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 # You can change this to other runners like 'windows-latest' or 'macos-latest'
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
16+
- name: Set up C++
17+
uses: actions/setup-cpp@v2
18+
with:
19+
compiler: gcc
20+
version: '14'
21+
22+
- name: Build google_benchmark instrumentation
23+
run: |
24+
cd examples/google_benchmark
25+
mkdir build -D
26+
cd build
27+
cmake -DCODSPEED_MODE=instrumentation ..
28+
make
29+
30+
- name: Build google_benchmark walltime
31+
run:
32+
cd examples/google_benchmark
33+
mkdir build -D
34+
cd build
35+
cmake -DCODSPEED_MODE=walltime ..
36+
make

0 commit comments

Comments
 (0)