Skip to content

CI on refs/heads/main on ec468b9126bc92664bb5189d7d57395eb7499230 #66

CI on refs/heads/main on ec468b9126bc92664bb5189d7d57395eb7499230

CI on refs/heads/main on ec468b9126bc92664bb5189d7d57395eb7499230 #66

Workflow file for this run

name: CI
run-name: CI on ${{ github.ref }} on ${{ github.sha }}
on:
push:
branches:
- main
jobs:
test_matrix:
strategy:
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: libpng-dev libavutil58 libavcodec-dev libavformat-dev libswscale-dev libswresample-dev
version: 1.2
execute_install_scripts: true
- 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
run: ./build/tools/benchmark/benchmarks