-
Notifications
You must be signed in to change notification settings - Fork 55
90 lines (82 loc) · 2.42 KB
/
main.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: gstd CI
on:
push:
branches:
- master
- develop
pull_request:
branches:
- develop
jobs:
autotools:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
include:
- os: ubuntu-22.04
remove-unwind: fix-unwind
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- if: ${{ matrix.remove-unwind }}
run: sudo apt remove libunwind-14-dev
- name: Dependecies
run: |
sudo apt update
sudo apt install automake libtool pkg-config libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
sudo apt install libglib2.0-dev libjson-glib-dev gtk-doc-tools libedit-dev libncursesw5-dev
sudo apt install libdaemon-dev libjansson-dev python3-pip python3-setuptools libsoup2.4-dev
- name: Generate
run: ./autogen.sh
- name: Configure
run: ./configure CFLAGS=-Werror
- name: Compile
run: make
- name: Checks
run: make check
- name: Install
run: sudo make install
- name: Check pygstc installation
run: python3 -c "import pygstc"
- name: List Pipelines Verification
run: |
gstd -e
gstd-client list_pipelines
meson:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
include:
- os: ubuntu-22.04
remove-unwind: fix-unwind
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- if: ${{ matrix.remove-unwind }}
run: sudo apt remove libunwind-14-dev
- name: Dependecies
run: |
sudo apt update
sudo apt install automake libtool pkg-config libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
sudo apt install libglib2.0-dev libjson-glib-dev gtk-doc-tools libedit-dev libncursesw5-dev
sudo apt install libdaemon-dev libjansson-dev python3-pip python3-setuptools libsoup2.4-dev
sudo apt install ninja-build python3-wheel
sudo pip3 install meson
- name: Generate for Ubuntu 20.04 and above
run: meson --werror build -Dpython.install_env=auto
- name: Compile
run: ninja -C build
- name: Checks
run: ninja -C build test
- name: Install
run: sudo ninja -C build install
- name: Check pygstc installation
run: python3 -c "import pygstc"
- name: List Pipelines Verification
run: |
gstd -e
gstd-client list_pipelines