2021-04-12 03:05:07 +08:00
|
|
|
name: CI Xenial
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-16.04
|
|
|
|
|
|
|
|
steps:
|
2021-05-25 02:50:06 +08:00
|
|
|
- name: Update packages
|
|
|
|
run: sudo apt-get -qq update && sudo apt-get -qq upgrade
|
2021-04-12 03:05:07 +08:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Install dependencies
|
2021-06-05 20:31:33 +08:00
|
|
|
run: >
|
|
|
|
sudo apt-get -qq install libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev
|
|
|
|
libcurl4-gnutls-dev libvlc-dev libvncserver-dev
|
|
|
|
libdate-manip-perl libdbd-mysql-perl libsys-mmap-perl
|
|
|
|
libpolkit-gobject-1-dev
|
2021-04-12 03:05:07 +08:00
|
|
|
- name: Prepare
|
|
|
|
run: mkdir build
|
|
|
|
- name: Configure
|
2021-05-01 06:12:45 +08:00
|
|
|
run: cd build && cmake --version && cmake .. -DBUILD_MAN=0 -DENABLE_WERROR=1
|
2021-04-12 03:05:07 +08:00
|
|
|
- name: Build
|
|
|
|
run: cd build && make -j3 | grep --line-buffered -Ev '^(cp lib\/|Installing.+\.pm)' && (exit ${PIPESTATUS[0]})
|