mirror of
https://github.com/espressif/openthread.git
synced 2026-07-27 14:27:47 +00:00
[github-actions] download size reporter in workflow file (#6475)
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user