Skip to content

[PUT Project] Add format support for Raviewer formats and MJPEG #16

[PUT Project] Add format support for Raviewer formats and MJPEG

[PUT Project] Add format support for Raviewer formats and MJPEG #16

name: grabthecam build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo .github/scripts/prepare-env.sh
- name: Build the project
run: |
mkdir build
cd build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DADD_GRABTHECAM_FARSHOW_DEMO=ON ..
make
- name: Code linting
run: |
cd build
make format
test $(git status --porcelain | wc -l) -eq 0 || { git diff; false; }
example-build:
runs-on: ubuntu-latest
container:
image: debian:bookworm
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install dependencies
run: |
.github/scripts/prepare-env.sh
- name: Build the project
run: |
mkdir build
cd build
cmake ..
make
- name: Install the project
run: |
cd build
make install
- name: Build the 'example-build'
run: |
cd tests/example-build
cp ../../src/example.cpp ./
mkdir build
cd build
cmake ..
make