From fbbc0d9f59bcbc9b7d0a92ada95fa3103867a38d Mon Sep 17 00:00:00 2001 From: Status102 <102887808+status102@users.noreply.github.com> Date: Sun, 14 Sep 2025 17:30:30 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=B8=BAsmoke-testing=E4=BD=BF=E7=94=A8c?= =?UTF-8?q?ache=E6=97=B6=E5=A2=9E=E5=8A=A0resource=E9=93=BE=E6=8E=A5=20(#1?= =?UTF-8?q?4096)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: MistEO --- .github/workflows/smoke-testing.yml | 40 +++++++++++++---------------- tools/SmokeTesting/run_tests.sh | 4 +-- 2 files changed, 20 insertions(+), 24 deletions(-) diff --git a/.github/workflows/smoke-testing.yml b/.github/workflows/smoke-testing.yml index 8614644a39..e2aacadc0b 100644 --- a/.github/workflows/smoke-testing.yml +++ b/.github/workflows/smoke-testing.yml @@ -53,16 +53,14 @@ jobs: with: key: ${{ steps.cache_key.outputs.key }} path: | - ./AsstCaller.h - ./AsstPort.h - ./libc++.so.1 - ./libc++abi.so.1 - ./libfastdeploy_ppocr.so - ./libMaaCore.so - ./libonnxruntime.so.1 - ./libopencv_world4.so.411 - ./libunwind.so.1 - ./smoke_test + ./install/libc++.so.1 + ./install/libc++abi.so.1 + ./install/libfastdeploy_ppocr.so + ./install/libMaaCore.so + ./install/libonnxruntime.so.1 + ./install/libopencv_world4.so.411 + ./install/libunwind.so.1 + ./install/smoke_test - name: Fetch submodules if: steps.smoke-cache.outputs.cache-hit != 'true' @@ -112,7 +110,7 @@ jobs: if: steps.smoke-cache.outputs.cache-hit != 'true' run: | mkdir -p install - cmake --install build --prefix ./ --config Debug + cmake --install build --prefix install --config Debug - name: Run tests run: | @@ -124,20 +122,18 @@ jobs: with: key: ${{ steps.cache_key.outputs.key }} path: | - ./AsstCaller.h - ./AsstPort.h - ./libc++.so.1 - ./libc++abi.so.1 - ./libfastdeploy_ppocr.so - ./libMaaCore.so - ./libonnxruntime.so.1 - ./libopencv_world4.so.411 - ./libunwind.so.1 - ./smoke_test + ./install/libc++.so.1 + ./install/libc++abi.so.1 + ./install/libfastdeploy_ppocr.so + ./install/libMaaCore.so + ./install/libonnxruntime.so.1 + ./install/libopencv_world4.so.411 + ./install/libunwind.so.1 + ./install/smoke_test - name: Upload logs if: always() uses: actions/upload-artifact@v4 with: name: logs - path: ./debug + path: ./install/debug diff --git a/tools/SmokeTesting/run_tests.sh b/tools/SmokeTesting/run_tests.sh index ed046c14b5..43784e4f22 100755 --- a/tools/SmokeTesting/run_tests.sh +++ b/tools/SmokeTesting/run_tests.sh @@ -4,12 +4,12 @@ set -e clients=("Official" "YoStarJP" "YoStarEN" "YoStarKR" "txwy") error_clients=() -log_dir="./debug" +log_dir="./install/debug" mkdir -p "$log_dir" declare -A pids for client in "${clients[@]}"; do - ./smoke_test "$client" > "$log_dir/asst_${client}.log" 2>&1 & + ./install/smoke_test "$client" > "$log_dir/asst_${client}.log" 2>&1 & pids["$client"]=$! done