Memory report ci #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 main | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
ref: main | |
- name: Baseline report | |
run: | | |
make clean test | |
mkdir artifacts | |
cat build/test/*.size > artifacts/baseline-report.txt | |
- name: Checkout update | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Update report | |
run: | | |
make clean test | |
cat build/test/*.size > artifacts/update-report.txt | |
- name: Combine | |
run: | |
python3 parse-reports.py artifacts/baseline-report.txt artifacts/update-report.txt artifacts/report.txt | |
- name: Comment | |
uses: gavv/[email protected] | |
with: | |
commit: ${{ github.event.pull_request.head.sha }} | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
artifacts: artifacts/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:" |