-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (37 loc) · 1.04 KB
/
ci.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
name: CI
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
repository_dispatch:
types: [run_build]
jobs:
ci:
name: Run CI on ${{ matrix.config.name }}
runs-on: ubuntu-latest
env:
CC: ${{ matrix.config.cc }}
strategy:
fail-fast: false
matrix:
config:
- { name: "gcc 11", cc: gcc-11 }
- { name: "gcc 12", cc: gcc-12 }
- { name: "gcc 13", cc: gcc-13 }
- { name: "clang 13", cc: clang-13 }
- { name: "clang 14", cc: clang-14 }
- { name: "clang 15", cc: clang-15 }
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get -y install libsdl2-dev libavcodec-dev libavformat-dev libavutil-dev \
libswresample-dev libswscale-dev libass-dev clang-tidy ${{ matrix.config.cc }}
- name: Build
run: |
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DUSE_TIDY=1 -DBUILD_EXAMPLES=1 ..
make -j2