-
Notifications
You must be signed in to change notification settings - Fork 10
106 lines (90 loc) · 3.03 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
compiler: [gcc, clang]
os: [ubuntu-20.04, ubuntu-22.04, macos-latest]
exclude:
- os: macos-latest
compiler: gcc
env:
CC: ${{ matrix.compiler }}
MACOSX_DEPLOYMENT_TARGET: "10.10"
steps:
- uses: actions/checkout@v4
- name: openssl path macos
if: ${{ runner.os == 'macOS' }}
run: |
echo "OPENSSL_ROOT_DIR=/usr/local/opt/openssl" >> $GITHUB_ENV
- name: Fix Ubuntu 22.04
if: ${{ matrix.os == 'ubuntu-22.04' }}
run: |
sudo apt-get remove libunwind-14 -y
sudo apt-get install libunwind-dev -y
- 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 \
libopencore-amrnb-dev \
libopencore-amrwb-dev \
libgstreamer1.0-dev \
libvpx-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 \
glib-utils
- uses: sreimers/pr-dependency-action@v1
with:
name: re
repo: https://github.com/baresip/re
secret: ${{ secrets.GITHUB_TOKEN }}
- uses: sreimers/pr-dependency-action@v1
with:
name: baresip
repo: https://github.com/baresip/baresip
secret: ${{ secrets.GITHUB_TOKEN }}
- name: make re/baresip
run: |
cmake -S re -B re/build
cmake --build re/build -j
cmake -S baresip -B baresip/build -DMODULES=
cmake --build baresip/build -j -t baresip
for p in re baresip; do
mv $p ../.
done
- name: ldconfig
if: ${{ runner.os == 'Linux' }}
run: sudo ldconfig
- name: make baresip-apps linux
if: ${{ runner.os == 'Linux' }}
run: |
cmake -B build -DCMAKE_C_FLAGS="-Werror" && cmake --build build -j
- name: make baresip-apps macOS
if: ${{ runner.os == 'macOS' }}
run: |
cmake -B build -DCMAKE_C_FLAGS="-Werror" && cmake --build build -j