forked from baresip/baresip
-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (72 loc) · 2.4 KB
/
build.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
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
compiler: [gcc, clang]
os: [ubuntu-18.04, ubuntu-20.04, macos-latest]
exclude:
- os: macos-latest
compiler: gcc
env:
CC: ${{ matrix.compiler }}
MACOSX_DEPLOYMENT_TARGET: "10.10"
steps:
- uses: actions/checkout@v2
- name: install packages
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get update && sudo apt-get install -y libavcodec-dev \
libavdevice-dev \
libavformat-dev \
libgtk-3-dev \
libjack-jackd2-dev \
libmosquitto-dev \
libmpg123-dev \
libopus-dev \
libpulse-dev \
libsndfile1-dev \
libspandsp-dev \
libssl-dev \
libglib2.0-dev
- name: install aac
if: ${{ matrix.os == 'ubuntu-20.04' }}
run: |
sudo apt-get update && sudo apt-get install -y libfdk-aac-dev
- name: install packages
if: ${{ runner.os == 'macOS' }}
run: |
brew install codec2 \
fdk-aac \
ffmpeg \
jack \
mpg123 \
spandsp
- uses: sreimers/[email protected]
with:
name: re
repo: https://github.com/baresip/re
secret: ${{ secrets.GITHUB_TOKEN }}
- uses: sreimers/[email protected]
with:
name: rem
repo: https://github.com/baresip/rem
secret: ${{ secrets.GITHUB_TOKEN }}
- name: make re/rem
run: |
for p in re rem; do cd $p && sudo PATH="$PATH" make install && cd - && sudo rm -Rf $p; done
- name: ldconfig
if: ${{ runner.os == 'Linux' }}
run: sudo ldconfig
- name: make baresip linux
if: ${{ runner.os == 'Linux' }}
run: |
make V=1 CCACHE= EXTRA_CFLAGS=-Werror info test modules
make clean; make CCACHE= STATIC=yes
- name: make baresip macOS
if: ${{ runner.os == 'macOS' }}
run: |
make V=1 CCACHE= EXTRA_CFLAGS=-Werror bareinfo test modules
make clean; make CCACHE= STATIC=yes