Skip to content

Commit

Permalink
updated ci (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelrahim-hentabli authored Oct 5, 2024
1 parent 57a7565 commit 1cd5850
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,31 @@ on:
branches:
- main
jobs:
Build-And-test:
runs-on: ubuntu-latest
test-matrix:
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
- name: Run benchmark
Expand Down

0 comments on commit 1cd5850

Please sign in to comment.