[PUT Project] Add format support for Raviewer formats and MJPEG #15
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: 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 |