mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[ci] Use steps to pass the binary_size result
This commit is contained in:
9
.github/workflows/metrics-workflow.yml
vendored
9
.github/workflows/metrics-workflow.yml
vendored
@@ -24,10 +24,13 @@ jobs:
|
||||
- name: Build head
|
||||
run: make -j2 -C head epsilon.elf
|
||||
- name: Retrieve binary size analysis
|
||||
run: echo "::set-env name=BINARY_SIZE::$(python3 head/build/metrics/binary_size.py base/output/release/device/n0110/epsilon.elf head/output/release/device/n0110/epsilon.elf --labels Base Head --escape)"
|
||||
id: binary_size
|
||||
run: echo "::set-output name=table::$(python3 head/build/metrics/binary_size.py base/output/release/device/n0110/epsilon.elf head/output/release/device/n0110/epsilon.elf --labels Base Head --escape)"
|
||||
- name: Prepare comment auth
|
||||
run: echo "::set-env name=GITHUB_TOKEN::$(echo ZGExNWM1YzNlMjVkMWU5ZGFmOWQyY2UxMmRhYjJiN2ZhMWM4ODVhMA== | base64 --decode)"
|
||||
- name: Add comment
|
||||
uses: actions/github@v1.0.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
|
||||
with:
|
||||
args: comment ${{ env.BINARY_SIZE }}
|
||||
args: comment ${{ steps.binary_size.outputs.table }}
|
||||
|
||||
Reference in New Issue
Block a user