Skip to content

Commit

Permalink
ci_runner: Build formats/pyvidctrl samples
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoscik authored and jbylicki committed Jan 22, 2024
1 parent 563fb40 commit 09b4a7e
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/grabthecam-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,50 @@ jobs:
cd build
cmake ..
make
test-build:
runs-on: ubuntu-22.04

steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install dependencies
run: |
# By default Github Ubuntu runner uses a regular user (non-root).
sudo .github/scripts/prepare-env.sh
sudo apt install v4l-utils linux-modules-extra-$(uname -r) 1>/dev/null
sudo modprobe vivid
lsmod | grep -i vivid
sudo chown $USER /dev/video0
chmod a+rwx /dev/video0
v4l2-ctl --list-formats -d /dev/video0
- name: Build the project
run: |
# Prepare directories for the artifacts
mkdir artifacts
mkdir artifacts/frames
mkdir build
cd build
cmake .. -DBUILD_TESTS=ON
make
- name: Generate config for pyvidctrl
run: |
./build/grabthecam-demo -c /dev/video0 -s
cp .pyvidctrl-vivid artifacts/
- name: Generate test samples
run: |
./build/grabthecam-test-frame-fetch /dev/video0
cp frame_*.png artifacts/frames/
- name: Upload test artifacts
uses: actions/upload-artifact@v3
with:
name: test
path: |
artifacts

0 comments on commit 09b4a7e

Please sign in to comment.