-
-
Notifications
You must be signed in to change notification settings - Fork 5
61 lines (51 loc) · 1.72 KB
/
benchmark.yml
File metadata and controls
61 lines (51 loc) · 1.72 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Benchmark
on:
pull_request:
branches:
- main
paths:
- 'include/**'
- 'src/**'
- 'subprojects/**'
- 'meson.build'
- 'meson_options.txt'
- '.github/workflows/benchmark.yml'
- '*.cfg'
workflow_dispatch:
env:
GTEST_VER: 1.14.0
jobs:
benchmark:
name: benchmark
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Meson
run: pip3 install meson ninja
- name: Build cpplint-cpp
run: |
meson setup build --native-file=presets/release.ini
meson compile -C build
- name: Copy gooletest, Download cpplint.py
run: |
cp -r subprojects/googletest-${{ env.GTEST_VER }} ../
curl -O https://raw.githubusercontent.com/cpplint/cpplint/refs/tags/2.0.0/cpplint.py
- name: Show CPU info
run: |
lscpu
./build/cpplint-cpp --threads=
- name: Lint cpplint-cpp
run: |
python ./benchmark/benchmark.py . --cpplint_cpp="./build/cpplint-cpp"
sh ./benchmark/memory_usage.sh "./build/cpplint-cpp" .
sh ./benchmark/memory_usage.sh "python cpplint.py" .
- name: Lint googletest
run: |
python ./benchmark/benchmark.py ../googletest-${{ env.GTEST_VER }} --cpplint_cpp="./build/cpplint-cpp"
sh ./benchmark/memory_usage.sh "./build/cpplint-cpp" ../googletest-${{ env.GTEST_VER }}
sh ./benchmark/memory_usage.sh "python cpplint.py" ../googletest-${{ env.GTEST_VER }}
- name: Check required GLIBC version
run: bash .github/workflows/check_glibc_compatibility.sh ./build/cpplint-cpp