4.9.0 #55
Workflow file for this run
This file contains 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 2022 | |
on: | |
pull_request: | |
types: [synchronize, opened] | |
env: | |
OPENCV_VERSION: 4.9.0 | |
jobs: | |
build: | |
strategy: | |
matrix: | |
platform: ["win", "uwp"] | |
arch: ["x86", "x64", "ARM"] | |
exclude: | |
- platform: win | |
arch: ARM | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
submodules: recursive | |
- name: Install Server-Media-Foundation | |
shell: powershell | |
run: | | |
Install-WindowsFeature Server-Media-Foundation | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
- name: Setup vcpkg | |
uses: lukka/[email protected] | |
if: ${{ matrix.platform == 'win' }} | |
with: | |
vcpkgGitCommitId: "64adda19c86e89526b5e27703a193c14477cce07" | |
vcpkgGitURL: https://github.com/shimat/vcpkg.git | |
- name: Vcpkg | |
shell: powershell | |
if: ${{ matrix.platform == 'win' }} | |
run: | | |
echo ${env:VCPKG_ROOT} | |
& ${env:VCPKG_ROOT}\vcpkg install tesseract:${{matrix.arch}}-windows-static | |
& ${env:VCPKG_ROOT}\vcpkg integrate install | |
& ${env:VCPKG_ROOT}\vcpkg list | |
ls ${env:VCPKG_ROOT}\installed | |
ls ${env:VCPKG_ROOT}\installed\${{matrix.arch}}-windows-static | |
ls ${env:VCPKG_ROOT}\installed\${{matrix.arch}}-windows-static\include | |
ls ${env:VCPKG_ROOT}\installed\${{matrix.arch}}-windows-static\lib | |
- name: Build OpenCV | |
shell: powershell | |
run: | | |
if ("${{matrix.platform}}" -eq 'win'){ | |
. ".\build_windows.ps1" | |
BuildForWindows ${{matrix.arch}} "${env:VCPKG_ROOT}" $TRUE | |
} | |
elseif ("${{matrix.platform}}" -eq 'uwp'){ | |
. ".\build_uwp.ps1" | |
BuildForUWP ${{matrix.arch}} "${env:VCPKG_ROOT}" $TRUE | |
} | |
- name: Set Version Variable | |
id: version | |
shell: powershell | |
run: | | |
$v = ${env:OPENCV_VERSION}.Replace(".", "") | |
echo "::set-output name=OPENCV_VERSION_MOD::${v}" | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v1 | |
with: | |
name: opencv${{steps.version.outputs.OPENCV_VERSION_MOD}}_${{matrix.platform}}_${{matrix.arch}} | |
path: build_${{matrix.platform}}_${{matrix.arch}}/install |