forked from boostorg/json
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (51 loc) · 1.75 KB
/
run_analyze-bloat.yml
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
name: analyze-bloat
on: [push, pull_request]
env:
CMAKE_SHARED_LIBS: '0'
CMAKE_NO_TESTS: ignore
CMAKE_OPTIONS: >
-DBOOST_JSON_BUILD_TESTS=OFF
-DBOOST_JSON_BUILD_FUZZERS=OFF
-DBOOST_JSON_BUILD_BENCHMARKS=OFF
-DCMAKE_BUILD_TYPE=Release
-DVISIBILITY_INLINES_HIDDEN=TRUE
-DCMAKE_CXX_VISIBILITY_PRESET=hidden
jobs:
analyze-bloat:
runs-on: ubuntu-latest
steps:
- name: Fetch head
uses: actions/checkout@v4
with:
path: 'head_ref/root'
- name: Compile static lib for head ref
uses: ./head_ref/root/.github/actions/build
with:
buildtype: 'cmake-superproject'
toolset: gcc
path: 'head_ref/root'
- name: Bloat analysis - absolute values
uses: djarek/bloaty-analyze@v1.0.0
with:
file: head_ref/boost-root/__build_static/stage/lib/libboost_json.a
rows: 0 # 0 indicates unlimited number of rows
- name: Fetch base
if: ${{ github.event_name == 'pull_request' }}
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
path: 'base_ref/root'
- name: Compile static lib for base ref
if: ${{ github.event_name == 'pull_request' }}
uses: ./head_ref/root/.github/actions/build
with:
buildtype: 'cmake-superproject'
toolset: gcc
path: 'base_ref/root'
- name: Bloat analysis - diff
uses: djarek/bloaty-analyze@v1.0.0
if: ${{ github.event_name == 'pull_request' }}
with:
file: head_ref/boost-root/__build_static/stage/lib/libboost_json.a
base-file: base_ref/boost-root/__build_static/stage/lib/libboost_json.a
rows: 0 # 0 indicates unlimited number of rows