[github-actions] download size reporter in workflow file (#6475)

This commit is contained in:
Yakun Xu
2021-04-20 07:30:37 -07:00
committed by GitHub
parent 2796615cf7
commit 33012716ee
2 changed files with 7 additions and 12 deletions
+5
View File
@@ -56,4 +56,9 @@ jobs:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
export PATH=$PATH:$HOME/.local/bin
if [ ${{ github.event_name }} == pull_request ]; then
curl -s --retry 5 "${SIZE_REPORT_URL}/bash" >size-report
chmod a+x size-report
export OT_SIZE_REPORTER=./size-report
fi
./script/check-size
+2 -12
View File
@@ -233,19 +233,9 @@ size_nrf52840_version()
size_nrf52840()
{
export OT_SHA_NEW OT_SHA_OLD
local reporter
# not on GitHub Actions or not a pull request event
if [[ ! ${GITHUB_ACTIONS+x} || ! ${GITHUB_REF-} =~ ^refs/pull/[0-9]+/merge ]]; then
reporter=markdown
else
reporter=./size-report
curl -s --retry 5 "${SIZE_REPORT_URL}/bash" >size-report
chmod a+x size-report
export OT_SHA_NEW OT_SHA_OLD
fi
local reporter="${OT_SIZE_REPORTER:-markdown}"
"${reporter}" init OpenThread
size_nrf52840_version 1.1