-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (41 loc) · 1.22 KB
/
bloaty.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
name: Bloaty Action
on:
push:
branches:
- main
pull_request:
paths:
- src/**
workflow_dispatch:
jobs:
bloaty-job:
runs-on: ubuntu-latest
container:
image: ghcr.io/bounverif/boostdev:1.82.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Configure and build this project
uses: threeal/cmake-action@latest
with:
build-dir: build
args: -DCMAKE_BUILD_TYPE=RELEASE
- name: Run Bloaty McBloatface on an ELF file
uses: carlosperate/[email protected]
id: bloaty-action
with:
bloaty-args: build/librvstd.a -d armembers
- name: Add a PR comment with the bloaty output
uses: actions/github-script@v6
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '```\n${{ steps.bloaty-action.outputs.bloaty-output-encoded }}```\n'
})
if: github.event_name == 'pull_request'