Migration: remaining modules to the ArrayProxy ABI (by-pointer) + tests #1216
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Windows Server 2025 | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| run_binskim: | |
| description: 'Run BinSkim security hardening check' | |
| type: boolean | |
| default: true | |
| pull_request: | |
| types: [synchronize, opened] | |
| push: | |
| branches: | |
| - main | |
| env: | |
| OPENCV_VERSION: "5.0.0" | |
| jobs: | |
| build: | |
| name: Windows (x64) | |
| runs-on: windows-2025 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| submodules: true | |
| fetch-depth: 1 | |
| - name: Install .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 10.0.x | |
| - name: Restore vcpkg packages cache | |
| id: vcpkg-cache | |
| uses: actions/cache/restore@v5 | |
| with: | |
| path: ${{ github.workspace }}/vcpkg_installed | |
| key: vcpkg-${{ hashFiles('vcpkg.json', 'cmake/triplets/*.cmake') }}-x64-windows-static | |
| - name: Update vcpkg to match builtin-baseline | |
| if: steps.vcpkg-cache.outputs.cache-hit != 'true' | |
| run: | | |
| $baseline = (Get-Content vcpkg.json | ConvertFrom-Json).'builtin-baseline' | |
| git -C $env:VCPKG_INSTALLATION_ROOT fetch --depth=1 origin $baseline | |
| git -C $env:VCPKG_INSTALLATION_ROOT checkout $baseline | |
| - name: Install vcpkg dependencies | |
| if: steps.vcpkg-cache.outputs.cache-hit != 'true' | |
| run: vcpkg install --triplet x64-windows-static --overlay-triplets=${{ github.workspace }}/cmake/triplets --x-install-root=${{ github.workspace }}/vcpkg_installed | |
| - name: Save vcpkg packages cache | |
| if: steps.vcpkg-cache.outputs.cache-hit != 'true' | |
| uses: actions/cache/save@v5 | |
| with: | |
| path: ${{ github.workspace }}/vcpkg_installed | |
| key: vcpkg-${{ hashFiles('vcpkg.json', 'cmake/triplets/*.cmake') }}-x64-windows-static | |
| - name: Restore OpenCV cache | |
| id: opencv-cache | |
| uses: actions/cache/restore@v5 | |
| with: | |
| path: ${{ github.workspace }}/opencv_artifacts | |
| key: opencv-${{ env.OPENCV_VERSION }}-windows-x64-${{ hashFiles('cmake/opencv_build_options.cmake') }}-${{ hashFiles('vcpkg.json', 'cmake/triplets/*.cmake') }} | |
| - name: Configure OpenCV | |
| if: steps.opencv-cache.outputs.cache-hit != 'true' | |
| shell: powershell | |
| run: | | |
| $ErrorActionPreference = 'Continue' | |
| # Force OpenCV 5's vendored MLAS off by giving CMake no ASM compiler | |
| # (see -D CMAKE_ASM_COMPILER below). MinGW or Strawberry-Perl gcc on the | |
| # runner PATH would otherwise be picked by MLAS's check_language(ASM), | |
| # building GNU-syntax .S SGEMM kernels that fail the MSVC link (x64: | |
| # missing SgemmKernelSse2.obj) and inject pthread into the OpenCV link | |
| # interface (arm64: LNK1181 pthread.lib). MLAS then disables and DNN uses | |
| # its built-in SGEMM, matching a clean local VS build. Windows builds the | |
| # image codecs via vcpkg, so no other ASM language is needed. | |
| cmake ` | |
| -C cmake/opencv_build_options.cmake ` | |
| -S opencv ` | |
| -B opencv/build ` | |
| -G "Visual Studio 18 2026" -A x64 ` | |
| -D CMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" ` | |
| -D VCPKG_TARGET_TRIPLET=x64-windows-static ` | |
| -D VCPKG_MANIFEST_INSTALL=OFF ` | |
| -D "VCPKG_INSTALLED_DIR=$env:GITHUB_WORKSPACE/vcpkg_installed" ` | |
| -D "VCPKG_OVERLAY_TRIPLETS=$env:GITHUB_WORKSPACE/cmake/triplets" ` | |
| -D OPENCV_EXTRA_MODULES_PATH="$env:GITHUB_WORKSPACE/opencv_contrib/modules" ` | |
| -D CMAKE_INSTALL_PREFIX="$env:GITHUB_WORKSPACE/opencv_artifacts" ` | |
| -D CMAKE_ASM_COMPILER="" ` | |
| *>&1 | Tee-Object -FilePath "$env:TEMP\opencv-configure.log" | |
| if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | |
| - name: Verify OpenCV cmake features | |
| if: steps.opencv-cache.outputs.cache-hit != 'true' | |
| shell: powershell | |
| run: | | |
| $log = Get-Content "$env:TEMP\opencv-configure.log" -Raw | |
| $features = @('Tesseract', 'FFMPEG', 'JPEG', 'PNG', 'TIFF', 'WEBP') | |
| $fail = $false | |
| foreach ($f in $features) { | |
| $m = [regex]::Match($log, "(?m)^--\s+${f}:\s+(.+)$") | |
| if ($m.Success -and $m.Groups[1].Value.Trim() -notmatch '^NO\b') { | |
| Write-Host "OK: $f = $($m.Groups[1].Value.Trim())" | |
| } else { | |
| Write-Host "MISSING or DISABLED: $f" | |
| $log -split "`n" | Select-String -Pattern $f | Select-Object -Last 3 | ForEach-Object { Write-Host $_ } | |
| $fail = $true | |
| } | |
| } | |
| if ($fail) { exit 1 } | |
| - name: Build OpenCV | |
| if: steps.opencv-cache.outputs.cache-hit != 'true' | |
| shell: powershell | |
| run: | | |
| cmake --build opencv/build --config Release -j 4 | |
| cmake --install opencv/build --config Release | |
| - name: Save OpenCV cache | |
| if: steps.opencv-cache.outputs.cache-hit != 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| uses: actions/cache/save@v5 | |
| with: | |
| path: ${{ github.workspace }}/opencv_artifacts | |
| key: opencv-${{ env.OPENCV_VERSION }}-windows-x64-${{ hashFiles('cmake/opencv_build_options.cmake') }}-${{ hashFiles('vcpkg.json', 'cmake/triplets/*.cmake') }} | |
| # Commented out: FFmpeg backend is included in opencv_videoio_ffmpeg DLLs | |
| # If video tests fail, uncomment this step | |
| #- name: Install Server-Media-Foundation | |
| # shell: powershell | |
| # run: | | |
| # Install-WindowsFeature Server-Media-Foundation | |
| - name: Build OpenCvSharpExtern (full) | |
| shell: powershell | |
| run: | | |
| $ErrorActionPreference = "Stop" | |
| cmake ` | |
| -S src ` | |
| -B src/build ` | |
| -G "Visual Studio 18 2026" -A x64 ` | |
| -D CMAKE_PREFIX_PATH="$env:GITHUB_WORKSPACE/opencv_artifacts" ` | |
| -D CMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" ` | |
| -D VCPKG_TARGET_TRIPLET=x64-windows-static ` | |
| -D VCPKG_MANIFEST_INSTALL=OFF ` | |
| -D "VCPKG_INSTALLED_DIR=$env:GITHUB_WORKSPACE/vcpkg_installed" ` | |
| -D "VCPKG_OVERLAY_TRIPLETS=$env:GITHUB_WORKSPACE/cmake/triplets" | |
| cmake --build src/build --config Release -j 4 | |
| - name: Build OpenCvSharpExtern (slim) | |
| shell: powershell | |
| run: | | |
| $ErrorActionPreference = "Stop" | |
| cmake ` | |
| -S src ` | |
| -B src/build_slim ` | |
| -G "Visual Studio 18 2026" -A x64 ` | |
| -D CMAKE_PREFIX_PATH="$env:GITHUB_WORKSPACE/opencv_artifacts" ` | |
| -D CMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" ` | |
| -D VCPKG_TARGET_TRIPLET=x64-windows-static ` | |
| -D VCPKG_MANIFEST_INSTALL=OFF ` | |
| -D "VCPKG_INSTALLED_DIR=$env:GITHUB_WORKSPACE/vcpkg_installed" ` | |
| -D "VCPKG_OVERLAY_TRIPLETS=$env:GITHUB_WORKSPACE/cmake/triplets" ` | |
| -D NO_CONTRIB=ON ` | |
| -D NO_VIDEOIO=ON ` | |
| -D NO_HIGHGUI=ON ` | |
| -D NO_DNN=ON ` | |
| -D NO_STITCHING=ON ` | |
| -D NO_INSTALL_TO_TEST=ON | |
| cmake --build src/build_slim --config Release -j 4 | |
| - name: Test | |
| shell: cmd | |
| run: dotnet test test\OpenCvSharp.Tests -c Release -f net10.0 --runtime win-x64 | |
| - name: Test Windows-only functions | |
| shell: powershell | |
| run: | | |
| cd ${env:GITHUB_WORKSPACE}\test\OpenCvSharp.Tests.Windows | |
| dotnet test -c Release -f net10.0-windows --runtime win-x64 | |
| - name: Verify security hardening with BinSkim | |
| if: inputs.run_binskim == true | |
| shell: powershell | |
| run: | | |
| # Official install: download .nupkg from NuGet, unzip, run exe from tools/ | |
| $dest = "$env:TEMP\binskim" | |
| Invoke-WebRequest "https://www.nuget.org/api/v2/package/Microsoft.CodeAnalysis.BinSkim" -OutFile "$dest.zip" | |
| Expand-Archive "$dest.zip" $dest -Force | |
| $binskimExe = Get-ChildItem "$dest\tools\net*\win-x64\binskim.exe" | Select-Object -Last 1 -ExpandProperty FullName | |
| if (-not $binskimExe) { throw "binskim.exe not found" } | |
| # Scan OpenCvSharpExtern.dll only. | |
| # opencv_videoio_ffmpeg*.dll is a pre-built binary from opencv_3rdparty | |
| # and cannot be recompiled with different flags (see opencv/3rdparty/ffmpeg/ffmpeg.cmake). | |
| $dll = "$env:GITHUB_WORKSPACE\src\build\OpenCvSharpExtern\Release\OpenCvSharpExtern.dll" | |
| if (-not (Test-Path $dll)) { throw "OpenCvSharpExtern.dll not found: $dll" } | |
| $sarifFile = "$env:TEMP\binskim.sarif" | |
| & $binskimExe analyze $dll --output $sarifFile | |
| # Ignore BinSkim's own exit code (it returns 1 on PDB load failures etc.); | |
| # rely solely on SARIF result filtering below. | |
| $LASTEXITCODE = 0 | |
| # Ignore findings we cannot address: | |
| # ERR997 - PDB unavailable (Release builds have no PDB by default) | |
| # BA2007 - compiler warning level violations in vcpkg static libs (tesseract, tiff, etc.) | |
| if (-not (Test-Path $sarifFile)) { Write-Warning "No SARIF output produced."; exit 0 } | |
| $failures = (Get-Content $sarifFile | ConvertFrom-Json).runs[0].results | Where-Object { | |
| $ruleId = ($_.ruleId -split "/")[0] | |
| $_.level -eq "error" -and $ruleId -notmatch "^ERR997" -and $ruleId -ne "BA2007" | |
| } | |
| if ($failures) { | |
| $failures | ForEach-Object { Write-Host "FAIL $($_.ruleId): $(($_.message.text -split "`n")[0])" } | |
| exit 1 | |
| } | |
| Write-Host "Security hardening verified: no actionable failures." | |
| - name: Pack NuGet packages | |
| shell: pwsh | |
| run: | | |
| $ErrorActionPreference = "Stop" | |
| $PSNativeCommandUseErrorActionPreference = $true | |
| $date = Get-Date -Format "yyyyMMdd" | |
| $version = "${env:OPENCV_VERSION}.${date}-beta" | |
| Write-Host "version = ${version}" | |
| # Pack main libraries (dotnet pack triggers build implicitly) | |
| dotnet pack src/OpenCvSharp/OpenCvSharp.csproj -c Release -o artifacts -p:Version=$version | |
| dotnet pack src/OpenCvSharp.GdipExtensions/OpenCvSharp.GdipExtensions.csproj -c Release -o artifacts -p:Version=$version | |
| dotnet pack src/OpenCvSharp.WpfExtensions/OpenCvSharp.WpfExtensions.csproj -c Release -o artifacts -p:Version=$version | |
| # Pack runtime packages | |
| dotnet pack nuget/OpenCvSharp5.runtime.win.csproj -o artifacts -p:Version=$version | |
| dotnet pack nuget/OpenCvSharp5.runtime.win.slim.csproj -o artifacts -p:Version=$version | |
| # Add local artifacts as NuGet source for meta-package | |
| dotnet nuget add source "${env:GITHUB_WORKSPACE}\artifacts" --name LocalPackages | |
| # Pack meta-package (depends on packages built above) | |
| dotnet pack nuget/OpenCvSharp5.Windows.csproj -o artifacts -p:Version=$version -p:PackageVersion=$version | |
| dotnet pack nuget/OpenCvSharp5.Windows.Slim.csproj -o artifacts -p:Version=$version -p:PackageVersion=$version | |
| - name: Pack release zip | |
| shell: pwsh | |
| run: | | |
| ./scripts/pack-release-zip.ps1 ` | |
| -WorkspaceDir "${env:GITHUB_WORKSPACE}" ` | |
| -OutputDir "${env:GITHUB_WORKSPACE}\artifacts" ` | |
| -Version ${{env.OPENCV_VERSION}} | |
| - name: Upload NuGet packages and Release packages | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: packages_windows | |
| path: ${{ github.workspace }}\artifacts | |
| build-arm64: | |
| name: Windows (arm64) | |
| runs-on: windows-11-arm | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| submodules: true | |
| fetch-depth: 1 | |
| - name: Install .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 10.0.x | |
| - name: Restore vcpkg packages cache | |
| id: vcpkg-cache | |
| uses: actions/cache/restore@v5 | |
| with: | |
| path: ${{ github.workspace }}/vcpkg_installed | |
| key: vcpkg-${{ hashFiles('vcpkg.json', 'cmake/triplets/*.cmake') }}-arm64-windows-static | |
| - name: Update vcpkg to match builtin-baseline | |
| if: steps.vcpkg-cache.outputs.cache-hit != 'true' | |
| run: | | |
| $baseline = (Get-Content vcpkg.json | ConvertFrom-Json).'builtin-baseline' | |
| git -C $env:VCPKG_INSTALLATION_ROOT fetch --depth=1 origin $baseline | |
| git -C $env:VCPKG_INSTALLATION_ROOT checkout $baseline | |
| - name: Install vcpkg dependencies | |
| if: steps.vcpkg-cache.outputs.cache-hit != 'true' | |
| run: vcpkg install --triplet arm64-windows-static --overlay-triplets=${{ github.workspace }}/cmake/triplets --x-install-root=${{ github.workspace }}/vcpkg_installed | |
| - name: Save vcpkg packages cache | |
| if: steps.vcpkg-cache.outputs.cache-hit != 'true' | |
| uses: actions/cache/save@v5 | |
| with: | |
| path: ${{ github.workspace }}/vcpkg_installed | |
| key: vcpkg-${{ hashFiles('vcpkg.json', 'cmake/triplets/*.cmake') }}-arm64-windows-static | |
| - name: Restore OpenCV cache | |
| id: opencv-cache | |
| uses: actions/cache/restore@v5 | |
| with: | |
| path: ${{ github.workspace }}/opencv_artifacts | |
| key: opencv-${{ env.OPENCV_VERSION }}-windows-arm64-${{ hashFiles('cmake/opencv_build_options.cmake') }}-${{ hashFiles('vcpkg.json', 'cmake/triplets/*.cmake') }} | |
| - name: Configure OpenCV | |
| if: steps.opencv-cache.outputs.cache-hit != 'true' | |
| shell: powershell | |
| run: | | |
| $ErrorActionPreference = 'Continue' | |
| # Force OpenCV 5's vendored MLAS off by giving CMake no ASM compiler | |
| # (see -D CMAKE_ASM_COMPILER below). MinGW or Strawberry-Perl gcc on the | |
| # runner PATH would otherwise be picked by MLAS's check_language(ASM), | |
| # building GNU-syntax .S SGEMM kernels that fail the MSVC link (x64: | |
| # missing SgemmKernelSse2.obj) and inject pthread into the OpenCV link | |
| # interface (arm64: LNK1181 pthread.lib). MLAS then disables and DNN uses | |
| # its built-in SGEMM, matching a clean local VS build. Windows builds the | |
| # image codecs via vcpkg, so no other ASM language is needed. | |
| # OpenCV 5's vendored MLAS uses GNU-syntax aarch64 .S SGEMM kernels that | |
| # armasm64 (the only ASM compiler on the VS2022 ARM64 toolchain, which | |
| # windows-11-arm ships instead of VS2026) cannot assemble, and | |
| # CMAKE_ASM_COMPILER="" does not disable ASM under the VS ARM64 generator | |
| # (it does under VS2026 x64). MLAS is an OpenCV 5 addition (absent in | |
| # OpenCV 4), so skip building it on this toolchain; DNN keeps working via | |
| # its built-in SGEMM (as OpenCV 4 ARM64 did). Drop the add_subdirectory | |
| # that pulls MLAS into opencv_dnn. | |
| (Get-Content opencv/modules/dnn/CMakeLists.txt) ` | |
| -replace 'add_subdirectory\("\$\{OpenCV_SOURCE_DIR\}/3rdparty/mlas".*', '# [win-arm64] MLAS disabled (armasm64 cannot assemble its aarch64 .S kernels)' ` | |
| | Set-Content opencv/modules/dnn/CMakeLists.txt | |
| cmake ` | |
| -C cmake/opencv_build_options.cmake ` | |
| -S opencv ` | |
| -B opencv/build ` | |
| -G "Visual Studio 17 2022" -A ARM64 ` | |
| -D CMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" ` | |
| -D VCPKG_TARGET_TRIPLET=arm64-windows-static ` | |
| -D VCPKG_MANIFEST_INSTALL=OFF ` | |
| -D "VCPKG_INSTALLED_DIR=$env:GITHUB_WORKSPACE/vcpkg_installed" ` | |
| -D "VCPKG_OVERLAY_TRIPLETS=$env:GITHUB_WORKSPACE/cmake/triplets" ` | |
| -D OPENCV_EXTRA_MODULES_PATH="$env:GITHUB_WORKSPACE/opencv_contrib/modules" ` | |
| -D CMAKE_INSTALL_PREFIX="$env:GITHUB_WORKSPACE/opencv_artifacts" ` | |
| -D WITH_FFMPEG=OFF ` | |
| -D CMAKE_ASM_COMPILER="" ` | |
| *>&1 | Tee-Object -FilePath "$env:TEMP\opencv-configure.log" | |
| if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | |
| - name: Verify OpenCV cmake features | |
| if: steps.opencv-cache.outputs.cache-hit != 'true' | |
| shell: powershell | |
| run: | | |
| $log = Get-Content "$env:TEMP\opencv-configure.log" -Raw | |
| $features = @('Tesseract', 'JPEG', 'PNG', 'TIFF', 'WEBP') | |
| $fail = $false | |
| foreach ($f in $features) { | |
| $m = [regex]::Match($log, "(?m)^--\s+${f}:\s+(.+)$") | |
| if ($m.Success -and $m.Groups[1].Value.Trim() -notmatch '^NO\b') { | |
| Write-Host "OK: $f = $($m.Groups[1].Value.Trim())" | |
| } else { | |
| Write-Host "MISSING or DISABLED: $f" | |
| $log -split "`n" | Select-String -Pattern $f | Select-Object -Last 3 | ForEach-Object { Write-Host $_ } | |
| $fail = $true | |
| } | |
| } | |
| if ($fail) { exit 1 } | |
| - name: Build OpenCV | |
| if: steps.opencv-cache.outputs.cache-hit != 'true' | |
| shell: powershell | |
| run: | | |
| cmake --build opencv/build --config Release -j 4 | |
| cmake --install opencv/build --config Release | |
| - name: Save OpenCV cache | |
| if: steps.opencv-cache.outputs.cache-hit != 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| uses: actions/cache/save@v5 | |
| with: | |
| path: ${{ github.workspace }}/opencv_artifacts | |
| key: opencv-${{ env.OPENCV_VERSION }}-windows-arm64-${{ hashFiles('cmake/opencv_build_options.cmake') }}-${{ hashFiles('vcpkg.json', 'cmake/triplets/*.cmake') }} | |
| - name: Build OpenCvSharpExtern (full) | |
| shell: powershell | |
| run: | | |
| $ErrorActionPreference = "Stop" | |
| cmake ` | |
| -S src ` | |
| -B src/build_arm64 ` | |
| -G "Visual Studio 17 2022" -A ARM64 ` | |
| -D CMAKE_PREFIX_PATH="$env:GITHUB_WORKSPACE/opencv_artifacts" ` | |
| -D CMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" ` | |
| -D VCPKG_TARGET_TRIPLET=arm64-windows-static ` | |
| -D VCPKG_MANIFEST_INSTALL=OFF ` | |
| -D "VCPKG_INSTALLED_DIR=$env:GITHUB_WORKSPACE/vcpkg_installed" ` | |
| -D "VCPKG_OVERLAY_TRIPLETS=$env:GITHUB_WORKSPACE/cmake/triplets" | |
| cmake --build src/build_arm64 --config Release -j 4 | |
| - name: Build OpenCvSharpExtern (slim) | |
| shell: powershell | |
| run: | | |
| $ErrorActionPreference = "Stop" | |
| cmake ` | |
| -S src ` | |
| -B src/build_arm64_slim ` | |
| -G "Visual Studio 17 2022" -A ARM64 ` | |
| -D CMAKE_PREFIX_PATH="$env:GITHUB_WORKSPACE/opencv_artifacts" ` | |
| -D CMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" ` | |
| -D VCPKG_TARGET_TRIPLET=arm64-windows-static ` | |
| -D VCPKG_MANIFEST_INSTALL=OFF ` | |
| -D "VCPKG_INSTALLED_DIR=$env:GITHUB_WORKSPACE/vcpkg_installed" ` | |
| -D "VCPKG_OVERLAY_TRIPLETS=$env:GITHUB_WORKSPACE/cmake/triplets" ` | |
| -D NO_CONTRIB=ON ` | |
| -D NO_VIDEOIO=ON ` | |
| -D NO_HIGHGUI=ON ` | |
| -D NO_DNN=ON ` | |
| -D NO_STITCHING=ON ` | |
| -D NO_INSTALL_TO_TEST=ON | |
| cmake --build src/build_arm64_slim --config Release -j 4 | |
| - name: Test | |
| shell: cmd | |
| run: dotnet test test\OpenCvSharp.Tests -c Release -f net10.0 --runtime win-arm64 --filter "FullyQualifiedName!=OpenCvSharp.Tests.Core.BuildConfigurationTest.FFMPEG_IsEnabled" | |
| - name: Pack NuGet packages | |
| shell: pwsh | |
| run: | | |
| $ErrorActionPreference = "Stop" | |
| $PSNativeCommandUseErrorActionPreference = $true | |
| $date = Get-Date -Format "yyyyMMdd" | |
| $version = "${env:OPENCV_VERSION}.${date}-beta" | |
| Write-Host "version = ${version}" | |
| dotnet pack nuget/OpenCvSharp5.runtime.win-arm64.csproj -o artifacts -p:Version=$version | |
| dotnet pack nuget/OpenCvSharp5.runtime.win-arm64.slim.csproj -o artifacts -p:Version=$version | |
| - name: Upload NuGet packages | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: packages_windows_arm64 | |
| path: ${{ github.workspace }}\artifacts |