Skip to content

Memory report ci

Memory report ci #9

Workflow file for this run

name: Memory usage report
on:
push:
branches:
- main
pull_request:
permissions:
contents: write
pull-requests: write
jobs:
ci:
name: Report memory usage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Test
run:
make test
- name: Combine
# TODO: Should parse the report and compare it to main branch
run:
cat build/test/*.size > build/report.txt
- name: Comment
uses: gavv/pull-request-artifacts@v2.1.0
with:
commit: ${{ github.event.pull_request.head.sha }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
artifacts: build/report.txt
comment-title: "Memory usage report"
comment-message: "Here is an overview of how your pull request impacts the memory usage compared to the main branch:"