From e03e60263f24610c6aa5ff328d36f152f6163244 Mon Sep 17 00:00:00 2001 From: Paul Dreik Date: Sun, 4 Apr 2021 19:24:46 +0200 Subject: [PATCH] switch to bloaty fork --- .github/workflows/bloaty.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/bloaty.yml b/.github/workflows/bloaty.yml index 1092e9c64f..240566c5cd 100644 --- a/.github/workflows/bloaty.yml +++ b/.github/workflows/bloaty.yml @@ -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' @@ -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: @@ -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 @@ -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