Skip to content

Feature: Add DeepFilterCommandBuilder to MediaProcessor (#42) #1

Feature: Add DeepFilterCommandBuilder to MediaProcessor (#42)

Feature: Add DeepFilterCommandBuilder to MediaProcessor (#42) #1

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."