Skip to content

Commit

Permalink
feat(colcon-build): use nice command to not overuse resources
Browse files Browse the repository at this point in the history
Signed-off-by: M. Fatih Cırıt <[email protected]>
  • Loading branch information
M. Fatih Cırıt committed Aug 19, 2024
1 parent b1b87c0 commit b79f92a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion colcon-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ inputs:
description: Will be part of the cache key
default: default
required: false
nice-command:
description: "See `man nice` for details"
required: false
default: "nice -n 19"

runs:
using: composite
Expand Down Expand Up @@ -80,7 +84,7 @@ runs:
cat /etc/nsswitch.conf
sed -e 's#hosts:\(.*\)dns\(.*\)#hosts:\1\2#g' -i.bak /etc/nsswitch.conf
cat /etc/nsswitch.conf
colcon build --event-handlers console_cohesion+ \
${{ inputs.nice-command }} colcon build --event-handlers console_cohesion+ \
--packages-above-and-dependencies ${{ inputs.target-packages }} \
--cmake-args -DCMAKE_BUILD_TYPE=${{ inputs.cmake-build-type }} \
--mixin coverage-gcc coverage-pytest compile-commands
Expand Down

0 comments on commit b79f92a

Please sign in to comment.