Skip to content

Fix ci bug

Fix ci bug #34

Workflow file for this run

name: CI
on:
push:
branches:
- main
- test-ci
jobs:
build-linux-x64:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake
sudo apt-get install -y libomp-dev
sudo apt-get install -y libopencv-dev
- name: CMake Configure & Generate
run: cmake -S . -B build -DBUILD_EXAMPLE:BOOL="1" -DBUILD_EXAMPLE_OPENCV:BOOL="1" -DBUILD_BENCHMARK:BOOL="1" -DUSE_OPENMP:BOOL="1"
- name: Build
run: cmake --build build --config Release
- name: Run example tests
run: build/example
- name: Run benchmark tests
run: build/benchmark
- name: Run example-opencv tests
run: build/example-opencv
build-windows-x64:
runs-on: windows-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Setup MSVC Developer Command Prompt
uses: TheMrMilchmann/[email protected]
with:
arch: x64
- name: Install dependencies
run: |
choco install cmake --version=3.31.3
choco install opencv --version=4.10.0
- name: CMake Configure & Generate
run: cmake -S . -B build -DBUILD_EXAMPLE:BOOL="1" -DBUILD_EXAMPLE_OPENCV:BOOL="1" -DBUILD_BENCHMARK:BOOL="1" -DUSE_OPENMP:BOOL="1" -DOpenCV_DIR:PATH="C:\tools\opencv\build"
- name: Build
run: cmake --build build --config Release
- name: Run example tests
run: build\Release\example.exe
- name: Run benchmark tests
run: build\Release\benchmark.exe
- name: Run example-opencv tests
run: |
copy C:\tools\opencv\build\x64\vc16\bin\opencv_world4100.dll build\Release\
build\Release\example-opencv.exe
build-windows-x86:
runs-on: windows-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Setup MSVC Developer Command Prompt
uses: TheMrMilchmann/[email protected]
with:
arch: amd64_x86
- name: Install dependencies
run: |
choco install cmake --version=3.31.3
choco install opencv --version=4.10.0 --params "/Arch:amd64_x86"
dir C:\tools\
dir C:\tools\opencv\
dir C:\tools\opencv\build
- name: CMake Configure & Generate
run: cmake -S . -B build -DBUILD_EXAMPLE:BOOL="1" -DBUILD_BENCHMARK:BOOL="1" -DUSE_OPENMP:BOOL="1" -A Win32
- name: Build
run: cmake --build build --config Release
- name: Run example tests
run: build\Release\example.exe
- name: Run benchmark tests
run: build\Release\benchmark.exe
build-windows-arm64:
runs-on: windows-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Setup MSVC Developer Command Prompt
uses: TheMrMilchmann/[email protected]
with:
arch: amd64_arm64
- name: Install dependencies
run: |
choco install cmake --version=3.31.3
choco install opencv --version=4.10.0 --params "/Arch:arm64"
dir C:\tools\
dir C:\tools\opencv\
dir C:\tools\opencv\build
- name: CMake Configure & Generate
run: cmake -S . -B build -DBUILD_EXAMPLE:BOOL="1" -DBUILD_BENCHMARK:BOOL="1" -DUSE_OPENMP:BOOL="1" -A ARM64
- name: Build
run: cmake --build build --config Release
- name: Run example tests
run: build\Release\example.exe
- name: Run benchmark tests
run: build\Release\benchmark.exe