Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Oct 5, 2024
1 parent aad3a68 commit 4e0e1c3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/rtp.io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ on:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
build_test_rtp_io:
name: Build & Test rtp.io module
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
Expand All @@ -22,6 +23,7 @@ jobs:
env:
COMPILER: clang-18
BUILD_OS: ubuntu-latest
PYTHON_VERSION: 3.12

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand Down Expand Up @@ -51,7 +53,6 @@ jobs:
uses: actions/checkout@v4
with:
repository: 'sippy/voiptests'
ref: wip
path: dist/voiptests

- name: Checkout RTPProxy repo
Expand All @@ -60,14 +61,14 @@ jobs:
repository: 'sippy/rtpproxy'
path: dist/rtpproxy

- name: Set up Python 3.12
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: 3.12
python-version: ${{ env.PYTHON_VERSION }}

- name: Define PYTHON_CMD
run: |
PYTHON_VER="`echo 3.12 | sed 's|-dev$||'`"
PYTHON_VER="`echo ${{ env.PYTHON_VERSION }} | sed 's|-dev$||'`"
echo "PYTHON_CMD=python${PYTHON_VER}" >> $GITHUB_ENV
- name: Test rtp.io module
Expand Down
10 changes: 6 additions & 4 deletions scripts/build/do_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ then
EXCLUDE_MODULES="${EXCLUDE_MODULES} ${EXCLUDE_MODULES_ADD}"
fi

MAKE_ENV="CC_EXTRA_OPTS=${CC_EXTRA_OPTS:-"-Werror"} FASTER=1 NICER=0"
MAKE_CMD="env ${MAKE_ENV} make"
MAKE_ENV="FASTER=1 NICER=0"
MAKE_CMD="${MAKE_ENV} make"

if [ ! -z "${ONE_MODULE}" ]
then
${MAKE_CMD} -C "modules/${ONE_MODULE}"
env CC_EXTRA_OPTS="${CC_EXTRA_OPTS:-"-Werror"}" ${MAKE_CMD} \
-C "modules/${ONE_MODULE}"
else
${MAKE_CMD} exclude_modules="${EXCLUDE_MODULES}" "${@}" ${MAKE_TGT:-"all"}
env CC_EXTRA_OPTS="${CC_EXTRA_OPTS:-"-Werror"}" ${MAKE_CMD} \
exclude_modules="${EXCLUDE_MODULES}" "${@}" ${MAKE_TGT:-"all"}
fi

0 comments on commit 4e0e1c3

Please sign in to comment.