forked from arkq/bluez-alsa
-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (58 loc) · 1.65 KB
/
build-and-test.yaml
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
name: CI - Build and Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
features:
- --enable-debug
- --enable-debug --enable-aac --enable-msbc
- --enable-debug --enable-mp3lame --enable-mpg123
- --enable-faststream --enable-mp3lame
- --enable-ofono --enable-upower
- --enable-cli --enable-rfcomm --enable-manpages
fail-fast: false
runs-on: ubuntu-18.04
steps:
- name: Install Dependencies
run: |
sudo apt update
sudo apt install --yes --quiet --no-install-recommends \
check \
libasound2-dev \
libbluetooth-dev \
libbsd-dev \
libdbus-1-dev \
libfdk-aac-dev \
libglib2.0-dev \
libmp3lame-dev \
libmpg123-dev \
libncurses5-dev \
libreadline-dev \
libsbc-dev \
python-docutils
- uses: actions/checkout@v2
- name: Create Build Environment
run: |
mkdir -p ${{ github.workspace }}/{build,m4}
autoreconf --install
- name: Configure GNU Automake
working-directory: ${{ github.workspace }}/build
run: |
${{ github.workspace }}/configure \
${{ matrix.features }} \
--enable-test
- name: Build
working-directory: ${{ github.workspace }}/build
run: make && make check TESTS=
- name: Run Test
working-directory: ${{ github.workspace }}/build
run: make check
- name: Show Test Log
if: ${{ always() }}
working-directory: ${{ github.workspace }}/build
run: cat test/*.log