Skip to content

Commit

Permalink
switch to bloaty fork
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Dreik committed Apr 4, 2021
1 parent a55c2fa commit e03e602
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/bloaty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on: [push, pull_request]

jobs:
bloat:
if: >-
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
! contains(toJSON(github.event.commits.*.message), '[skip github]')
runs-on: ubuntu-20.04
env:
cmakeflags: '-DCMAKE_BUILD_TYPE=Release -DSIMDJSON_BUILD_STATIC=On -DSIMDJSON_JUST_LIBRARY=On'
Expand All @@ -12,6 +15,12 @@ jobs:
uses: jwlawson/actions-setup-cmake@v1.4
with:
cmake-version: '3.16.x'

- uses: actions/cache@v2
with:
path: dependencies/.cache
key: ${{ hashFiles('dependencies/CMakeLists.txt') }}

- name: Fetch head
uses: actions/checkout@v2
with:
Expand All @@ -22,13 +31,11 @@ jobs:
cmake --build build-head --target install
- name: Bloat analysis - absolute values
id: absolute
uses: djarek/bloaty-analyze@v1.0.0
uses: pauldreik/bloaty-analyze@v1.0.0
with: # see https://github.com/marketplace/actions/bloaty-analyze for explanations what these do
file: install-head/lib/libsimdjson.a
rows: 0
- name: "store results"
run: |
echo -E "${{ steps.absolute.outputs.analysis-result }}" > bloaty-sizes.txt
resultsfile: 'bloaty-sizes.txt'
- name: Fetch base
if: ${{ github.event_name == 'pull_request' }}
uses: actions/checkout@v2
Expand All @@ -48,9 +55,7 @@ jobs:
file: install-head/lib/libsimdjson.a
base-file: install-base/lib/libsimdjson.a
rows: 0
- name: "store results"
run: |
echo -E "${{ steps.diff.outputs.analysis-result }}" > bloaty-diff.txt
resultsfile: 'bloaty-diff.txt'
- uses: actions/upload-artifact@v2
with:
name: bloaty
Expand Down

0 comments on commit e03e602

Please sign in to comment.