Skip to content

Commit a526713

Browse files
committed
[GHA] Add MacOS build workflow
1 parent 6a25584 commit a526713

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed

.github/workflows/macos.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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 libtiff openssl@3 pkg-config
29+
brew install \
30+
autoconf \
31+
automake \
32+
curl \
33+
ffmpeg@5 \
34+
gnu-sed \
35+
jpeg \
36+
ldns \
37+
libpq@16 \
38+
libsndfile \
39+
libtool \
40+
lua \
41+
opus \
42+
ossp-uuid \
43+
pcre \
44+
sofia-sip \
45+
speex \
46+
speexdsp \
47+
sqlite \
48+
yasm \
49+
&& \
50+
brew install \
51+
signalwire/homebrew-signalwire/libks2 \
52+
signalwire/homebrew-signalwire/signalwire-c2 \
53+
signalwire/homebrew-signalwire/spandsp \
54+
&& \
55+
brew link --force --overwrite \
56+
ffmpeg@5 \
57+
libpq@16
58+
59+
- name: Bootstrap FreeSWITCH
60+
run: ./bootstrap.sh -j
61+
62+
# - name: Disable modules
63+
# run: |
64+
# gsed -i \
65+
# -e '/mod_pgsql/s/^/#/g' \
66+
# modules.conf
67+
68+
- name: Configure build
69+
run: |
70+
mkdir -p OUT && \
71+
./configure \
72+
--enable-shared \
73+
--enable-static \
74+
--exec_prefix=${{ github.workspace }}/OUT \
75+
--prefix=${{ github.workspace }}/OUT
76+
77+
- name: Build
78+
run: |
79+
make
80+
81+
- name: Install to local folder
82+
run: |
83+
make install
84+
85+
# - name: Debug - List all files
86+
# run: |
87+
# find . -type f | sort
88+
89+
- name: Upload build artifacts
90+
uses: actions/upload-artifact@v4
91+
if: always()
92+
with:
93+
name: freeswitch-macos-build
94+
path: |
95+
OUT/

0 commit comments

Comments
 (0)