Skip to content

Commit

Permalink
Add option to build just one module.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Jun 16, 2024
1 parent 1f4ddd5 commit 8bcabfc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rtp.io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
sudo make install
- name: Build rtp.io module
run: make -C modules/rtp.io
run: ONE_MODULE=rtp.io sh -x scripts/build/do_build.sh

build_in_docker:
# The type of runner that the job will run on
Expand Down Expand Up @@ -107,4 +107,4 @@ jobs:
run: sh -x scripts/build/do_build.sh

- name: Build rtp.io module
run: make -C modules/rtp.io
run: ONE_MODULE=rtp.io sh -x scripts/build/do_build.sh
11 changes: 9 additions & 2 deletions scripts/build/do_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,12 @@ then
EXCLUDE_MODULES="${EXCLUDE_MODULES} ${EXCLUDE_MODULES_ADD}"
fi

CC_EXTRA_OPTS=${CC_EXTRA_OPTS:-"-Werror"} FASTER=1 NICER=0 make \
exclude_modules="${EXCLUDE_MODULES}" "${@}" ${MAKE_TGT:-"all"}
MAKE_ENV="CC_EXTRA_OPTS=${CC_EXTRA_OPTS:-"-Werror"} FASTER=1 NICER=0"
MAKE_CMD="${MAKE_ENV} make"

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

0 comments on commit 8bcabfc

Please sign in to comment.