Skip to content

Update c-cpp.yml

Update c-cpp.yml #7

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install QT
uses: jurplel/[email protected]
with:
version: '6.2.0'
- name: Install SDL2
uses: libsdl-org/setup-sdl@v1
- name: Install FFmpeg
uses: AnimMouse/setup-ffmpeg@v1
- name: Install other FFmpeg and SDL stuff
run: |
sudo apt-get install -y libavdevice-dev libavfilter-dev libavformat-dev libavcodec-dev libswresample-dev libswscale-dev libavutil-dev
sudo apt-get install -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev
- name: Configure project
run: |
cd build
sudo cmake .
- name: Build project
run: |
cd build
sudo make install
- name: Run tests
run: |
cd build
ctest --output-on-failure