From 5601a20c1edab94ecb868957d978102aa12ff254 Mon Sep 17 00:00:00 2001 From: sauwming Date: Tue, 26 Dec 2023 14:37:53 +0800 Subject: [PATCH] Fixed CI build failure due to Python setup (#3811) --- .github/workflows/ci-mac.yml | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-mac.yml b/.github/workflows/ci-mac.yml index cc3047bc1..78316c303 100644 --- a/.github/workflows/ci-mac.yml +++ b/.github/workflows/ci-mac.yml @@ -30,14 +30,14 @@ jobs: run: CFLAGS="-g -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -fPIC" LDFLAGS="-L/usr/local/lib -L/usr/local/opt/openssl@1.1/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 @@ -91,6 +91,10 @@ jobs: run: CFLAGS="-I/usr/local/include -I/usr/local/opt/openssl@1.1/include -fPIC" LDFLAGS="-L/usr/local/lib -L/usr/local/opt/openssl@1.1/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 @@ -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 @@ -122,14 +130,14 @@ jobs: run: CFLAGS="-g -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -DHAS_VID_CODEC_TEST=0 -fPIC" LDFLAGS="-L/usr/local/lib -L/usr/local/opt/openssl@1.1/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 @@ -188,6 +196,10 @@ jobs: run: CFLAGS="-I/usr/local/include -I/usr/local/opt/openssl@1.1/include -fPIC" LDFLAGS="-L/usr/local/lib -L/usr/local/opt/openssl@1.1/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 @@ -204,5 +216,9 @@ jobs: run: CFLAGS="-I/usr/local/include -I/usr/local/opt/openssl@1.1/include -fPIC" LDFLAGS="-L/usr/local/lib -L/usr/local/opt/openssl@1.1/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