Merge pull request #119 from aws-samples/webrtc_v1.8.1 #165
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: v4l2 | |
on: [push, pull_request, workflow_dispatch] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
BOARD: V4L2 | |
CC: gcc-10 | |
CXX: g++-10 | |
jobs: | |
x64-v4l2: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install libv4l2 | |
run: sudo apt install libv4l-dev -y | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
- name: Configure CMake | |
run: cmake -B ${{ github.workspace }}/build -DBOARD=${{ env.BOARD }} -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DBUILD_WEBRTC_SAMPLES=ON -DBUILD_KVS_SAMPLES=ON -DBUILD_SAVE_FRAME_SAMPLES=ON | |
- name: Build | |
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --parallel 4 | |
- name: Test | |
run: ctest -C ${{ env.BUILD_TYPE }} |