forked from autowarefoundation/autoware
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from youtalk/upstream-to-origin
feat: upstream to origin
- Loading branch information
Showing
27 changed files
with
927 additions
and
220 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
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
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
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,44 @@ | ||
#!/bin/bash -e | ||
|
||
: "${WEBAUTO_CI_SOURCE_PATH:?is not set}" | ||
: "${WEBAUTO_CI_DEBUG_BUILD:?is not set}" | ||
|
||
: "${AUTOWARE_PATH:?is not set}" | ||
: "${CCACHE_DIR:=}" | ||
: "${CCACHE_SIZE:=1G}" | ||
: "${PARALLEL_WORKERS:=4}" | ||
|
||
sudo mkdir "$AUTOWARE_PATH" | ||
sudo chown "$(whoami)": "$AUTOWARE_PATH" | ||
cd "$WEBAUTO_CI_SOURCE_PATH" | ||
cp -r src .webauto-ci.* "$AUTOWARE_PATH" | ||
cd "$AUTOWARE_PATH" | ||
|
||
if [ -n "$CCACHE_DIR" ]; then | ||
mkdir -p "$CCACHE_DIR" | ||
export USE_CCACHE=1 | ||
export CCACHE_DIR="$CCACHE_DIR" | ||
export CC="/usr/lib/ccache/gcc" | ||
export CXX="/usr/lib/ccache/g++" | ||
ccache -M "$CCACHE_SIZE" | ||
fi | ||
|
||
sudo -E apt-get -y update | ||
|
||
# shellcheck disable=SC2012 | ||
ROS_DISTRO=$(ls -1 /opt/ros | head -1) | ||
# shellcheck disable=SC1090 | ||
source "/opt/ros/$ROS_DISTRO/setup.bash" | ||
rosdep update | ||
rosdep install -y --from-paths src --ignore-src --rosdistro "$ROS_DISTRO" | ||
|
||
[[ $WEBAUTO_CI_DEBUG_BUILD == "true" ]] && build_type="RelWithDebInfo" || build_type="Release" | ||
|
||
colcon build \ | ||
--cmake-args -DCMAKE_BUILD_TYPE="$build_type" -DBUILD_TESTING=off -Wno-dev --no-warn-unused-cli \ | ||
--symlink-install \ | ||
--catkin-skip-building-tests \ | ||
--executor parallel \ | ||
--parallel-workers "$PARALLEL_WORKERS" | ||
|
||
sudo -E apt-get -y autoremove |
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,20 @@ | ||
#!/bin/bash -e | ||
|
||
ansible_args=() | ||
ansible_args+=("--extra-vars" "prompt_install_nvidia=y") | ||
ansible_args+=("--extra-vars" "prompt_download_artifacts=y") | ||
ansible_args+=("--extra-vars" "data_dir=$HOME/autoware_data") | ||
ansible_args+=("--extra-vars" "ros2_installation_type=ros-base") | ||
ansible_args+=("--extra-vars" "install_devel=false") | ||
|
||
# read amd64 env file and expand ansible arguments | ||
source 'amd64.env' | ||
while read -r env_name; do | ||
ansible_args+=("--extra-vars" "${env_name}=${!env_name}") | ||
done < <(sed "s/=.*//" <amd64.env) | ||
|
||
ansible-galaxy collection install -f -r "ansible-galaxy-requirements.yaml" | ||
ansible-playbook "ansible/playbooks/universe.yaml" \ | ||
"${ansible_args[@]}" \ | ||
-e WORKSPACE_ROOT="$(pwd)" \ | ||
--skip-tags vcs |
Oops, something went wrong.