[ci] Use steps to pass the binary_size result

This commit is contained in:
Romain Goyet
2020-04-06 18:07:27 -04:00
committed by Ecco
parent 7e02a90b2a
commit e314f2eb65

View File

@@ -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 }}