Pass size files via artifacts
This commit is contained in:
parent
8851255b4b
commit
f5cb63646b
3 changed files with 17 additions and 5 deletions
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
|
@ -189,6 +189,12 @@ jobs:
|
|||
|
|
||||
cd $PWD/extras/test/ci
|
||||
./parse_size.sh ${{ matrix.id }}
|
||||
|
||||
- name: Upload size report as artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: size-file-${{ matrix.id }}
|
||||
path: size_${{ matrix.id }}.csv
|
||||
|
||||
metrics:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -203,13 +209,19 @@ jobs:
|
|||
git config --global user.name "${{ github.actor }}"
|
||||
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
|
||||
|
||||
- name: Download size artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
path: aggregated-sizes
|
||||
|
||||
- name: Push size files
|
||||
run:
|
||||
|
|
||||
ls -R aggregated-sizes
|
||||
mkdir -p radiolib-ci/l0
|
||||
cd radiolib-ci/l0
|
||||
cp /tmp/size_*.csv radiolib-ci/l0/.
|
||||
rm -r /tmp/size_*.csv
|
||||
cp aggregated-sizes/size_*.csv radiolib-ci/l0/.
|
||||
rm -r aggregated-sizes/size_*.csv
|
||||
git add .
|
||||
git commit -m "Push artifacts from $GITHUB_REPOSITORY"
|
||||
git push origin main
|
||||
|
|
|
@ -8,7 +8,7 @@ skip="$2"
|
|||
options="$3"
|
||||
|
||||
# file for saving the compiled binary size reports
|
||||
size_file="/tmp/size_$board.txt"
|
||||
size_file="size_$board.txt"
|
||||
rm -f $size_file
|
||||
|
||||
path="../../../examples"
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
board=$1
|
||||
hash=$(git rev-parse --short HEAD)
|
||||
|
||||
in_file="/tmp/size_$board.txt"
|
||||
out_file="/tmp/size_${hash}_$board.csv"
|
||||
in_file="size_$board.txt"
|
||||
out_file="size_${hash}_$board.csv"
|
||||
rm -f $out_file
|
||||
|
||||
# write the header
|
||||
|
|
Loading…
Add table
Reference in a new issue