forked from signalwire/freeswitch
-
Notifications
You must be signed in to change notification settings - Fork 0
98 lines (87 loc) · 2.13 KB
/
macos.yml
File metadata and controls
98 lines (87 loc) · 2.13 KB
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
name: MacOS Build
on:
workflow_dispatch:
push:
branches:
- master
- v1.10
pull_request:
branches:
- master
- v1.10
jobs:
build:
name: Build MacOS
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
brew update
brew upgrade
# brew install libtiff openssl@3
brew install \
autoconf \
automake \
curl \
ffmpeg@5 \
gnu-sed \
jpeg \
ldns \
libpq@16 \
libsndfile \
libtool \
lua \
opus \
ossp-uuid \
pcre2 \
pkgconf \
sofia-sip \
speex \
speexdsp \
sqlite \
yasm \
&& \
brew list --pinned | awk '{system("brew unpin " $1)}' && \
brew install --adopt \
signalwire/homebrew-signalwire/libks2 \
signalwire/homebrew-signalwire/signalwire-c2 \
signalwire/homebrew-signalwire/spandsp \
&& \
brew link --force --overwrite \
ffmpeg@5 \
libpq@16
- name: Bootstrap FreeSWITCH
run: ./bootstrap.sh -j
# - name: Disable modules
# run: |
# gsed -i \
# -e '/mod_pgsql/s/^/#/g' \
# modules.conf
- name: Configure build
run: |
mkdir -p OUT && \
./configure \
--enable-shared \
--enable-static \
--exec_prefix=${{ github.workspace }}/OUT \
--prefix=${{ github.workspace }}/OUT
- name: Build
run: |
make
- name: Install to local folder
run: |
make install
# - name: Debug - List all files
# run: |
# find . -type f | sort
- name: Upload build artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: freeswitch-macos-build
path: |
OUT/