-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(docker): replace the multiple
colcon
commands with `build_…
…and_clean.sh`. (#5425) * run resolve_rosdep_keys.sh Signed-off-by: Yutaka Kondo <[email protected]> * style(pre-commit): autofix * update .dockerignore Signed-off-by: Yutaka Kondo <[email protected]> * chmod +x Signed-off-by: Yutaka Kondo <[email protected]> * fix location Signed-off-by: Yutaka Kondo <[email protected]> * remove rosdep update Signed-off-by: Yutaka Kondo <[email protected]> * run build_and_clean.sh Signed-off-by: Yutaka Kondo <[email protected]> * style(pre-commit): autofix --------- Signed-off-by: Yutaka Kondo <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e637867
commit 7aed5b5
Showing
2 changed files
with
29 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
function build_and_clean() { | ||
local ccache_dir=$1 | ||
local install_base=$2 | ||
|
||
du -sh "$ccache_dir" && ccache -s && | ||
colcon build --cmake-args \ | ||
" -Wno-dev" \ | ||
" --no-warn-unused-cli" \ | ||
--merge-install \ | ||
--install-base "$install_base" \ | ||
--mixin release compile-commands ccache && | ||
du -sh "$ccache_dir" && ccache -s && | ||
rm -rf /autoware/build /autoware/log | ||
} | ||
|
||
build_and_clean "$@" |