check if the stream contains mjpeg as codec_name, then treat media as audio #92
Workflow file for this run
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: Build, Test and Format Core | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y ffmpeg cmake nlohmann-json3-dev libsndfile1-dev g++ | |
- name: Build with Tests Enabled | |
run: | | |
mkdir -p build | |
cd build | |
cmake -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release ../MediaProcessor | |
make -j$(nproc) | |
- name: Run Tests | |
run: | | |
cd build | |
ctest --output-on-failure | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: sudo apt update && sudo apt install -y clang-format | |
- name: Run clang-format Check on MediaProcessor | |
run: | | |
find MediaProcessor/src -regex '.*\.\(cpp\|h\)' -exec clang-format --dry-run --Werror {} + | |
- name: Display Message if Formatting Fails | |
if: failure() | |
run: echo "Code formatting issues found in MediaProcessor. Please run clang-format to fix them." |