-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (57 loc) · 1.92 KB
/
memory.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Memory usage report
on:
pull_request:
permissions:
contents: write
pull-requests: write
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
ci:
name: Report memory usage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Generate memory usage report (current branch)
uses: ./.github/actions/memory-report
with:
branch: ${{ github.head_ref }}
- name: Generate memory usage report (main)
uses: ./.github/actions/memory-report
with:
branch: ${{ github.base_ref }}
# - name: Checkout main
# uses: actions/checkout@v3
# with:
# submodules: recursive
# ref: main
# - name: Baseline report
# run: |
# make test
# mkdir artifacts
# # TODO: main does not generate the .size files yet:
# #cat build/test/*.size > artifacts/baseline-report.txt
# - name: Checkout update
# uses: actions/checkout@v3
# with:
# submodules: recursive
# - name: Update report
# run: |
# make test
# cat build/test/*.size > artifacts/update-report.txt
# cp artifacts/update-report.txt artifacts/baseline-report.txt
# # TODO: remove cp
# - 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:"