-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/parameter_value_distribution' into feature/prep…
…rocessor_command
- Loading branch information
Showing
177 changed files
with
5,186 additions
and
1,470 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,61 @@ on: | |
required: true | ||
|
||
jobs: | ||
push_traffic_sim_docker: | ||
name: Push Docker Image for traffic_simulator | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 720 | ||
strategy: | ||
matrix: | ||
rosdistro: [humble] | ||
|
||
steps: | ||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
tool-cache: false | ||
|
||
- name: Install docker for ubuntu runner | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build | ||
if: github.event_name == 'pull_request' | ||
uses: docker/[email protected] | ||
with: | ||
files: | | ||
./docker-bake.hcl | ||
workdir: . | ||
set: | | ||
*.cache-to=type=gha,mode=max | ||
*.cache-from=type=gha | ||
push: false | ||
targets: | | ||
traffic_simulator_${{ matrix.rosdistro }} | ||
- name: Build and push | ||
if: github.event_name == 'workflow_dispatch' | ||
uses: docker/[email protected] | ||
with: | ||
files: | | ||
./docker-bake.hcl | ||
workdir: . | ||
set: | | ||
*.cache-to=type=gha,mode=max | ||
*.cache-from=type=gha | ||
*.tags=ghcr.io/tier4/scenario_simulator_v2:traffic_simulator_${{ matrix.rosdistro }}-${{ github.event.inputs.version }} | ||
push: true | ||
targets: | | ||
traffic_simulator_${{ matrix.rosdistro }} | ||
push_docker: | ||
name: Push Docker Image | ||
runs-on: ubuntu-22.04 | ||
|
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
name: Post check list | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
types: [opened, reopened] | ||
|
||
jobs: | ||
|
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 |
---|---|---|
|
@@ -3,8 +3,6 @@ name: Spell check | |
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
spell-check: | ||
|
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,47 @@ | ||
ARG ROS_DISTRO="humble" | ||
FROM ros:${ROS_DISTRO} as build-stage | ||
Check warning on line 2 in Dockerfile.traffic_simulator GitHub Actions / Push Docker Image for traffic_simulator (humble)The 'as' keyword should match the case of the 'from' keyword
|
||
SHELL ["/bin/bash", "-c"] | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV DEBCONF_NOWARNINGS=yes | ||
|
||
# cspell: ignore kisak | ||
RUN --mount=type=cache,id=apt-cache-amd64,target=/var/cache/apt,sharing=locked \ | ||
--mount=type=cache,id=apt-lib-amd64,target=/var/lib/apt,sharing=locked \ | ||
apt-get update && apt-get -y install python3-pip python3-rospkg python3-rosdep software-properties-common ccache && \ | ||
add-apt-repository ppa:kisak/kisak-mesa -y && \ | ||
apt-get update && apt-get install libegl-mesa0 -y | ||
|
||
RUN rm -f /etc/apt/apt.conf.d/docker-clean && \ | ||
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache | ||
|
||
WORKDIR /home/ubuntu/Desktop/scenario_simulator_ws/src/scenario_simulator | ||
COPY ./simulation/traffic_simulator /home/ubuntu/Desktop/scenario_simulator_ws/src/scenario_simulator/simulation/traffic_simulator | ||
COPY ./simulation/traffic_simulator_msgs /home/ubuntu/Desktop/scenario_simulator_ws/src/scenario_simulator/simulation/traffic_simulator_msgs | ||
COPY ./simulation/simulation_interface /home/ubuntu/Desktop/scenario_simulator_ws/src/scenario_simulator/simulation/simulation_interface | ||
COPY ./external/concealer /home/ubuntu/Desktop/scenario_simulator_ws/src/scenario_simulator/external/concealer | ||
COPY ./common /home/ubuntu/Desktop/scenario_simulator_ws/src/scenario_simulator/common | ||
COPY ./dependency_${ROS_DISTRO}.repos /home/ubuntu/Desktop/scenario_simulator_ws/src/scenario_simulator/dependency_${ROS_DISTRO}.repos | ||
RUN vcs import external < dependency_${ROS_DISTRO}.repos | ||
WORKDIR /home/ubuntu/Desktop/scenario_simulator_ws/src | ||
RUN --mount=type=cache,id=apt-cache-amd64,target=/var/cache/apt,sharing=locked \ | ||
--mount=type=cache,id=apt-lib-amd64,target=/var/lib/apt,sharing=locked \ | ||
source /opt/ros/${ROS_DISTRO}/setup.bash \ | ||
&& apt-get update \ | ||
&& rosdep install -iy --from-paths . --rosdistro ${ROS_DISTRO} -t build -t buildtool -t exec | ||
|
||
WORKDIR /home/ubuntu/Desktop/scenario_simulator_ws | ||
|
||
ENV CC="/usr/lib/ccache/gcc" | ||
ENV CXX="/usr/lib/ccache/g++" | ||
ENV CCACHE_DIR="/ccache" | ||
RUN --mount=type=cache,target=/ccache source /opt/ros/${ROS_DISTRO}/setup.bash && \ | ||
colcon build --symlink-install \ | ||
--cmake-args \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_C_COMPILER_LAUNCHER=ccache \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | ||
-DBUILD_TESTING=OFF | ||
COPY ./docker-entrypoint.sh / | ||
RUN chmod a+x /docker-entrypoint.sh | ||
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>arithmetic</name> | ||
<version>8.0.1</version> | ||
<version>9.4.0</version> | ||
<description>arithmetic library for scenario_simulator_v2</description> | ||
<maintainer email="[email protected]">Tatsuya Yamasaki</maintainer> | ||
<license>Apache License 2.0</license> | ||
|
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
Oops, something went wrong.