@@ -79,26 +79,26 @@ jobs:
7979 uses : actions/cache/restore@v6
8080 with :
8181 path : /opt/ffmpeg
82- key : manylinux2_28-ffmpeg-${{ hashFiles('docker/manylinux/build_static_deps.sh') }}
82+ key : manylinux2_28-ffmpeg-${{ hashFiles('packaging/ docker/manylinux/build_static_deps.sh') }}
8383
8484 - name : Build FFmpeg
8585 if : steps.ffmpeg-cache.outputs.cache-hit != 'true'
86- run : bash docker/manylinux/build_static_deps.sh
86+ run : bash packaging/ docker/manylinux/build_static_deps.sh
8787
8888 - name : Save FFmpeg cache
8989 if : steps.ffmpeg-cache.outputs.cache-hit != 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main'
9090 uses : actions/cache/save@v6
9191 with :
9292 path : /opt/ffmpeg
93- key : manylinux2_28-ffmpeg-${{ hashFiles('docker/manylinux/build_static_deps.sh') }}
93+ key : manylinux2_28-ffmpeg-${{ hashFiles('packaging/ docker/manylinux/build_static_deps.sh') }}
9494
9595 # -- OpenCV cache --------------------------------------------------------
9696 - name : Restore OpenCV cache (full)
9797 id : opencv-cache
9898 uses : actions/cache/restore@v6
9999 with :
100100 path : ${{ github.workspace }}/opencv_artifacts
101- key : opencv-${{ env.OPENCV_VERSION }}-manylinux2_28-full-${{ hashFiles('vcpkg.json', 'cmake/opencv_build_options.cmake', 'docker/manylinux/build_static_deps.sh') }}
101+ key : opencv-${{ env.OPENCV_VERSION }}-manylinux2_28-full-${{ hashFiles('vcpkg.json', 'cmake/opencv_build_options.cmake', 'packaging/ docker/manylinux/build_static_deps.sh') }}
102102
103103 - name : Configure OpenCV (full)
104104 if : steps.opencv-cache.outputs.cache-hit != 'true'
@@ -168,7 +168,7 @@ jobs:
168168 uses : actions/cache/save@v6
169169 with :
170170 path : ${{ github.workspace }}/opencv_artifacts
171- key : opencv-${{ env.OPENCV_VERSION }}-manylinux2_28-full-${{ hashFiles('vcpkg.json', 'cmake/opencv_build_options.cmake', 'docker/manylinux/build_static_deps.sh') }}
171+ key : opencv-${{ env.OPENCV_VERSION }}-manylinux2_28-full-${{ hashFiles('vcpkg.json', 'cmake/opencv_build_options.cmake', 'packaging/ docker/manylinux/build_static_deps.sh') }}
172172
173173 # -- OpenCvSharpExtern ---------------------------------------------------
174174 - name : Build OpenCvSharpExtern (full)
@@ -301,7 +301,7 @@ jobs:
301301 uses : actions/download-artifact@v8
302302 with :
303303 name : libOpenCvSharpExtern-full
304- path : nuget/
304+ path : packaging/ nuget/
305305
306306 - name : Download slim artifact
307307 uses : actions/download-artifact@v8
@@ -318,9 +318,9 @@ jobs:
318318 run : |
319319 cd ${GITHUB_WORKSPACE}/test/OpenCvSharp.Tests
320320 dotnet build -c Release -f net10.0
321- cp ${GITHUB_WORKSPACE}/nuget/libOpenCvSharpExtern.so bin/Release/net10.0/
322- cp ${GITHUB_WORKSPACE}/nuget/libOpenCvSharpExtern.so ./
323- sudo cp ${GITHUB_WORKSPACE}/nuget/libOpenCvSharpExtern.so /usr/lib/
321+ cp ${GITHUB_WORKSPACE}/packaging/ nuget/libOpenCvSharpExtern.so bin/Release/net10.0/
322+ cp ${GITHUB_WORKSPACE}/packaging/ nuget/libOpenCvSharpExtern.so ./
323+ sudo cp ${GITHUB_WORKSPACE}/packaging/ nuget/libOpenCvSharpExtern.so /usr/lib/
324324 LD_LIBRARY_PATH=. dotnet test OpenCvSharp.Tests.csproj -c Release -f net10.0 --runtime linux-x64 \
325325 --logger "trx;LogFileName=test-results.trx" < /dev/null
326326
@@ -376,13 +376,13 @@ jobs:
376376 echo "Package version: $version"
377377
378378 # Full package
379- cp /tmp/so-full/libOpenCvSharpExtern.so nuget/libOpenCvSharpExtern.so
380- dotnet pack nuget/OpenCvSharp5.official.runtime.linux-x64.csproj \
379+ cp /tmp/so-full/libOpenCvSharpExtern.so packaging/ nuget/libOpenCvSharpExtern.so
380+ dotnet pack packaging/ nuget/OpenCvSharp5.official.runtime.linux-x64.csproj \
381381 -o ${GITHUB_WORKSPACE}/artifacts -p:Version=$version
382382
383- # Slim package (overwrite .so in nuget/ with slim binary)
384- cp /tmp/so-slim/libOpenCvSharpExtern-slim.so nuget/libOpenCvSharpExtern.so
385- dotnet pack nuget/OpenCvSharp5.official.runtime.linux-x64.slim.csproj \
383+ # Slim package (overwrite .so in packaging/ nuget/ with slim binary)
384+ cp /tmp/so-slim/libOpenCvSharpExtern-slim.so packaging/ nuget/libOpenCvSharpExtern.so
385+ dotnet pack packaging/ nuget/OpenCvSharp5.official.runtime.linux-x64.slim.csproj \
386386 -o ${GITHUB_WORKSPACE}/artifacts -p:Version=$version
387387
388388 ls ${GITHUB_WORKSPACE}/artifacts
0 commit comments