ci: fix OpenCV DLL discovery in packaging step
Some checks failed
Build Windows Release / Build Windows x64 Release on Linux (MinGW + Qt + OpenCV) (push) Failing after 2m24s

This commit is contained in:
luochen570
2026-05-31 02:28:58 +08:00
parent 353a175306
commit 7fb902567e

View File

@@ -83,7 +83,7 @@ jobs:
cp "$root/bin/libwinpthread-1.dll" "$dist/" cp "$root/bin/libwinpthread-1.dll" "$dist/"
cp "$root/lib/qt6/plugins/platforms/qwindows.dll" "$dist/platforms/" cp "$root/lib/qt6/plugins/platforms/qwindows.dll" "$dist/platforms/"
cp "$root/lib/qt6/plugins/imageformats/"*.dll "$dist/imageformats/" cp "$root/lib/qt6/plugins/imageformats/"*.dll "$dist/imageformats/"
cp "$root/bin/opencv_"*.dll "$dist/" find "$root/bin" -maxdepth 1 -name "*opencv*" -exec cp -t "$dist/" {} +
install -m 0644 readme.md "$dist/readme.md" install -m 0644 readme.md "$dist/readme.md"
cat > "$dist/README.txt" <<'EOF' cat > "$dist/README.txt" <<'EOF'
@@ -117,7 +117,7 @@ jobs:
test -s "artifacts/$PACKAGE.sha256" test -s "artifacts/$PACKAGE.sha256"
unzip -l "artifacts/$PACKAGE" | grep -q 'chengnan/chengnan.exe' unzip -l "artifacts/$PACKAGE" | grep -q 'chengnan/chengnan.exe'
unzip -l "artifacts/$PACKAGE" | grep -q 'chengnan/platforms/qwindows.dll' unzip -l "artifacts/$PACKAGE" | grep -q 'chengnan/platforms/qwindows.dll'
unzip -l "artifacts/$PACKAGE" | grep -q 'chengnan/opencv_.*\.dll' unzip -l "artifacts/$PACKAGE" | grep -qE 'chengnan/.*opencv.*\.dll'
sha256sum -c "artifacts/$PACKAGE.sha256" sha256sum -c "artifacts/$PACKAGE.sha256"
- name: Upload package to repository release - name: Upload package to repository release