Skip to content

feat: added match template all #12

feat: added match template all

feat: added match template all #12

Workflow file for this run

name: Windows Build Test
on:
push:
branches: [ rust ]
pull_request:
branches: [ rust ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'
cache: 'npm'
- name: Install CMake
uses: lukka/get-cmake@latest
- name: Download and Install OpenCV
run: |
$opencvVersion = "4.10.0"
$downloadUrl = "https://github.com/opencv/opencv/releases/download/$opencvVersion/opencv-$opencvVersion-windows.exe"
Invoke-WebRequest -Uri $downloadUrl -OutFile "opencv-windows.exe"
Start-Process -FilePath "opencv-windows.exe" -ArgumentList "-y -o`"D:`"" -Wait
- name: Set Environment Variables
run: |
echo "OPENCV_INCLUDE_PATHS=D:\opencv\build\include" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "OPENCV_LINK_LIBS=opencv_world4100" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "OPENCV_LINK_PATHS=D:\opencv\build\x64\vc16\lib" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "D:\opencv\build\x64\vc16\bin" | Out-File -FilePath $env:GITHUB_PATH -Append
- name: Build
run: cargo build --verbose
- name: Install dependencies
run: npm install
- name: Test
run: npm run test