-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 875 Bytes
/
cmake.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
name: CMake
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout libxutils
uses: actions/checkout@v3
with:
repository: 'kala13x/libxutils'
path: 'libxutils'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc g++ cmake make
sudo apt-get install -y libavcodec-dev libavformat-dev
sudo apt-get install -y libavutil-dev libswscale-dev libavdevice-dev
- name: Check versions
run: |
gcc --version
cmake --version
- name: Build and install libxutils
run: cd libxutils && ./build.sh --tool=cmake --install
- name: Make build
run: |
mkdir build
cd build
cmake ..
make