Skip to content

Finish Descriptor Matching #32

Finish Descriptor Matching

Finish Descriptor Matching #32

name: CMake Multi-Platform
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
build_type: [Debug, Release]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up CMake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '4.1.1'
# Linux Dependencies
- name: Install Dependencies (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libopencv-dev libeigen3-dev libopenexr-dev
# Configure
- name: Configure with CMake
run: |
cmake -B build -S $GITHUB_WORKSPACE \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DOpenCV_DIR=/usr/lib/x86_64-linux-gnu/cmake/opencv4
# Build
- name: Build
run: cmake --build build --config ${{ matrix.build_type }} --parallel
# Install
- name: Install
run: cmake --install build --prefix instdir