File tree Expand file tree Collapse file tree 1 file changed +98
-0
lines changed Expand file tree Collapse file tree 1 file changed +98
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : MacOS Build
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ branches :
7
+ - master
8
+ - v1.10
9
+ pull_request :
10
+ branches :
11
+ - master
12
+ - v1.10
13
+
14
+ jobs :
15
+ build :
16
+ name : Build MacOS
17
+ runs-on : macos-latest
18
+
19
+ steps :
20
+ - name : Checkout code
21
+ uses : actions/checkout@v4
22
+ with :
23
+ fetch-depth : 0
24
+
25
+ - name : Install dependencies
26
+ run : |
27
+ brew update
28
+ brew install \
29
+ autoconf \
30
+ automake \
31
+ curl \
32
+ ffmpeg@5 \
33
+ gnu-sed \
34
+ jpeg \
35
+ ldns \
36
+ libsndfile \
37
+ libtiff \
38
+ libtool \
39
+ lua \
40
+ openssl@3 \
41
+ opus \
42
+ ossp-uuid \
43
+ pcre \
44
+ pkg-config \
45
+ sofia-sip \
46
+ speex \
47
+ speexdsp \
48
+ sqlite \
49
+ yasm \
50
+ && \
51
+ brew install \
52
+ signalwire/homebrew-signalwire/libks2 \
53
+ signalwire/homebrew-signalwire/signalwire-c2 \
54
+ signalwire/homebrew-signalwire/spandsp
55
+
56
+ - name : Set up build environment
57
+ run : |
58
+ echo "CFLAGS=-Wno-implicit-function-declaration" >> $GITHUB_ENV
59
+
60
+ - name : Bootstrap FreeSWITCH
61
+ run : ./bootstrap.sh -j
62
+
63
+ - name : Disable modules
64
+ run : |
65
+ gsed -i \
66
+ -e '/mod_av/s/^/#/g' \
67
+ -e '/mod_pgsql/s/^/#/g' \
68
+ modules.conf
69
+
70
+ - name : Configure build
71
+ run : |
72
+ mkdir -p OUT && \
73
+ ./configure \
74
+ --enable-shared \
75
+ --enable-static \
76
+ --exec_prefix=${{ github.workspace }}/OUT \
77
+ --prefix=${{ github.workspace }}/OUT \
78
+ --disable-libvpx
79
+
80
+ - name : Build
81
+ run : |
82
+ make
83
+
84
+ - name : Install to local folder
85
+ run : |
86
+ make install
87
+
88
+ # - name: Debug - List all files
89
+ # run: |
90
+ # find . -type f | sort
91
+
92
+ - name : Upload build artifacts
93
+ uses : actions/upload-artifact@v4
94
+ if : always()
95
+ with :
96
+ name : freeswitch-macos-build
97
+ path : |
98
+ OUT/
You can’t perform that action at this time.
0 commit comments