Skip to content

Commit

Permalink
updated PCm
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelrahim-hentabli committed Oct 5, 2024
1 parent f04bd90 commit bc47532
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/pcm.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
name: pre-commit

on:
pull_request:

issue_comment:
types: [created]
jobs:
Build-And-test:
runs-on: ubuntu-latest
command-check: ubuntu-latest
test_matrix:
if: ${{ github.event.issue.pull_request && contains( github.event.comment.body, '/pcm' ) }}
stategy:
matrix:
os: [ubuntu-22.04, ubuntu-20.04]
build_type: [default, openmp]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libavutil58 libavcodec-dev libavformat-dev libswscale-dev libswresample-dev
packages: libpng-dev libavutil58 libavcodec-dev libavformat-dev libswscale-dev libswresample-dev
version: 1.2
execute_install_scripts: true
- name: CMake config & build
- name: Default CMake config & build
if: ${{ matrix.build_type == 'default' }}
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release .
cmake --build build --parallel 4
- name: OpenMP CMake config & build
if: ${{ matrix.build_type == 'openmp' }}
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release -DUSE_OMP=ON .
cmake --build build --parallel 4
- name: Run test
run: ./build/tools/test/tests

0 comments on commit bc47532

Please sign in to comment.