From 1f4eba6ac3c012bdfcd1f0325778ceeecea70326 Mon Sep 17 00:00:00 2001 From: Nardi Ivan Date: Fri, 7 Apr 2023 12:38:13 +0200 Subject: [PATCH] CI: fix `Performance` job Fix: 7714507f --- .github/workflows/build_scheduled.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_scheduled.yml b/.github/workflows/build_scheduled.yml index 4f051bdb3ca..42b2084a9b5 100644 --- a/.github/workflows/build_scheduled.yml +++ b/.github/workflows/build_scheduled.yml @@ -101,8 +101,11 @@ jobs: run: | ./tests/do.sh mkdir ndpi-performance-upload - mv -v tests/result/cpu_profile.png ndpi-performance-upload/cpu_profile.png - mv -v tests/result/heap_profile.png ndpi-performance-upload/heap_profile.png + for d in $(find ./tests/cfgs/* -type d -maxdepth 0 2>/dev/null) ; do + PROFILE="$(basename $d)" + mv -v tests/cfgs/${PROFILE}/result/cpu_profile.png ndpi-performance-upload/${PROFILE}_cpu_profile.png + mv -v tests/cfgs/${PROFILE}/result/heap_profile.png ndpi-performance-upload/${PROFILE}_heap_profile.png + done - uses: actions/upload-artifact@v3 with: name: ndpi-performance