2021-05-25 02:50:06 +08:00
|
|
|
name: CI Debian Buster
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
2021-05-24 21:40:05 +08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
crypto_backend: [ gnutls, openssl ]
|
|
|
|
jwt_backend: [ libjwt, jwt_cpp ]
|
|
|
|
include:
|
|
|
|
- crypto_backend: gnutls
|
|
|
|
crypto_package: libgnutls28-dev
|
|
|
|
jwt_package: libjwt-gnutls-dev
|
|
|
|
- crypto_backend: openssl
|
|
|
|
crypto_package: libssl-dev
|
|
|
|
jwt_package: libjwt-dev
|
|
|
|
exclude:
|
|
|
|
- crypto_backend: gnutls
|
|
|
|
jwt_backend: jwt_cpp
|
2021-05-25 02:50:06 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: debian:buster
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Update packages
|
|
|
|
run: apt-get -qq update && apt-get -qq upgrade
|
|
|
|
- name: Install git
|
|
|
|
run: apt-get -qq install git
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Install dependencies
|
2021-06-05 20:31:33 +08:00
|
|
|
run: >
|
|
|
|
apt-get -qq install make cmake g++
|
|
|
|
default-libmysqlclient-dev
|
|
|
|
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 libwww-perl
|
|
|
|
libpolkit-gobject-1-dev
|
|
|
|
${{ matrix.crypto_package }} ${{ matrix.jwt_package }}
|
2021-05-25 02:50:06 +08:00
|
|
|
- name: Prepare
|
|
|
|
run: mkdir build
|
|
|
|
- name: Configure
|
2021-05-24 21:40:05 +08:00
|
|
|
run: cd build && cmake --version && cmake .. -DBUILD_MAN=0 -DENABLE_WERROR=1 -DZM_CRYPTO_BACKEND=${{ matrix.crypto_backend }} -DZM_JWT_BACKEND=${{ matrix.jwt_backend }}
|
2021-05-25 02:50:06 +08:00
|
|
|
- name: Build
|
|
|
|
run: cd build && make -j3 | grep --line-buffered -Ev '^(cp lib\/|Installing.+\.pm)' && (exit ${PIPESTATUS[0]})
|