Skip to content

Commit

Permalink
Fixed CI build failure due to Python setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sauwming committed Dec 26, 2023
1 parent ca2e450 commit c37b295
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions .github/workflows/ci-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ jobs:
run: CFLAGS="-g -I/usr/local/include -I/usr/local/opt/[email protected]/include -fPIC" LDFLAGS="-L/usr/local/lib -L/usr/local/opt/[email protected]/lib" CXXFLAGS="-g -fPIC" ./configure
- name: make
run: make
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: swig bindings
run: cd pjsip-apps/src/swig && make
- name: disable firewall
run: sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
- name: set up Python 3.10 for pjsua test
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: unit tests
run: make pjlib-test-ci pjmedia-test pjlib-util-test pjsua-test

Expand Down Expand Up @@ -91,6 +91,10 @@ jobs:
run: CFLAGS="-I/usr/local/include -I/usr/local/opt/[email protected]/include -fPIC" LDFLAGS="-L/usr/local/lib -L/usr/local/opt/[email protected]/lib" CXXFLAGS="-fPIC" ./configure
- name: make
run: make
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: swig bindings
run: cd pjsip-apps/src/swig && make

Expand All @@ -105,6 +109,10 @@ jobs:
run: CFLAGS="-fPIC" CXXFLAGS="-fPIC" ./configure --with-gnutls=/usr/local/
- name: make
run: make
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: swig bindings
run: cd pjsip-apps/src/swig && make

Expand All @@ -122,14 +130,14 @@ jobs:
run: CFLAGS="-g -I/usr/local/include -I/usr/local/opt/[email protected]/include -DHAS_VID_CODEC_TEST=0 -fPIC" LDFLAGS="-L/usr/local/lib -L/usr/local/opt/[email protected]/lib" CXXFLAGS="-g -fPIC" ./configure
- name: make
run: make
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: swig bindings
run: cd pjsip-apps/src/swig && make
- name: disable firewall
run: sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
- name: set up Python 3.10 for pjsua test
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: unit tests
run: make pjlib-test-ci pjmedia-test pjlib-util-test pjsua-test

Expand Down Expand Up @@ -188,6 +196,10 @@ jobs:
run: CFLAGS="-I/usr/local/include -I/usr/local/opt/[email protected]/include -fPIC" LDFLAGS="-L/usr/local/lib -L/usr/local/opt/[email protected]/lib" CXXFLAGS="-fPIC" ./configure
- name: make
run: make
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: swig bindings
run: cd pjsip-apps/src/swig && make

Expand All @@ -204,5 +216,9 @@ jobs:
run: CFLAGS="-I/usr/local/include -I/usr/local/opt/[email protected]/include -fPIC" LDFLAGS="-L/usr/local/lib -L/usr/local/opt/[email protected]/lib" CXXFLAGS="-fPIC" ./configure
- name: make
run: make
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: swig bindings
run: cd pjsip-apps/src/swig && make

0 comments on commit c37b295

Please sign in to comment.