Skip to content

ignore include order in CI workflow #28

ignore include order in CI workflow

ignore include order in CI workflow #28

Workflow file for this run

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