-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1017 Bytes
/
c-cpp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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
with:
install-linux-dependencies: true
version: 2.8.0
version-sdl-mixer: 2.8.0
- name: Install FFmpeg
uses: AnimMouse/setup-ffmpeg@v1
- name: Install FFmpeg dependencies
run: |
sudo apt-get install -y libavdevice-dev libavfilter-dev libavformat-dev libavcodec-dev libswresample-dev libswscale-dev libavutil-dev
- name: Configure project
run: |
mkdir build
cd build
cmake ..
- name: Build project
run: |
cd build
make -j ${nproc}