CI on refs/heads/main on 1d470e79432afbb3cf17b8d0a59cf9ce5f2085c8 #62
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: CI | |
run-name: CI on ${{ github.ref }} on ${{ github.sha }} | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
Build-And-test: | |
runs-on: ubuntu-latest | |
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 | |
version: 1.2 | |
execute_install_scripts: true | |
- name: CMake config & build | |
run: | | |
cmake -B build -DCMAKE_BUILD_TYPE=Release . | |
cmake --build build --parallel 4 | |
- name: Run test | |
run: ./build/tools/test/tests | |
- name: Run benchmark | |
run: ./build/tools/benchmark/benchmarks |