File tree 4 files changed +53
-7
lines changed
actions/docker-build-and-push
4 files changed +53
-7
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,12 @@ runs:
151
151
overwrite : true
152
152
if-no-files-found : error
153
153
154
+ - name : Remove tar file - prebuilt
155
+ if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.artifacts-destination == 'tarball' }}
156
+ run : |
157
+ rm /tmp/prebuilt.tar
158
+ shell : bash
159
+
154
160
- name : Upload Artifact - devel
155
161
if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.artifacts-destination == 'tarball' }}
156
162
id : artifact-upload-step-devel
@@ -163,6 +169,12 @@ runs:
163
169
overwrite : true
164
170
if-no-files-found : error
165
171
172
+ - name : Remove tar file - devel
173
+ if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.artifacts-destination == 'tarball' }}
174
+ run : |
175
+ rm /tmp/devel.tar
176
+ shell : bash
177
+
166
178
- name : Upload Artifact - runtime
167
179
if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.artifacts-destination == 'tarball' }}
168
180
id : artifact-upload-step-runtime
@@ -175,6 +187,12 @@ runs:
175
187
overwrite : true
176
188
if-no-files-found : error
177
189
190
+ - name : Remove tar file - runtime
191
+ if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.artifacts-destination == 'tarball' }}
192
+ run : |
193
+ rm /tmp/runtime.tar
194
+ shell : bash
195
+
178
196
- name : Output artifact URLs
179
197
id : output-artifact-urls
180
198
run : |
Original file line number Diff line number Diff line change 56
56
- name : Check out repository
57
57
uses : actions/checkout@v4
58
58
59
+ - name : Install vcstool
60
+ run : |
61
+ sudo apt-get -y update
62
+ sudo apt-get -y install python3-pip
63
+ pip install --no-cache-dir vcstool
64
+
65
+ - name : Set git config
66
+ uses : autowarefoundation/autoware-github-actions/set-git-config@v1
67
+ with :
68
+ token : ${{ secrets.GITHUB_TOKEN }}
69
+
59
70
- name : Free disk space
60
71
uses : ./.github/actions/free-disk-space
61
72
73
+ - name : Run vcs import
74
+ run : |
75
+ mkdir src
76
+ vcs import src < autoware.repos
77
+
62
78
- name : Build 'autoware-openadk'
63
79
uses : ./.github/actions/docker-build-and-push
64
80
with :
Original file line number Diff line number Diff line change 51
51
- name : Check out repository
52
52
uses : actions/checkout@v4
53
53
54
+ - name : Install vcstool
55
+ run : |
56
+ sudo apt-get -y update
57
+ sudo apt-get -y install python3-pip
58
+ pip install --no-cache-dir vcstool
59
+
60
+ - name : Set git config
61
+ uses : autowarefoundation/autoware-github-actions/set-git-config@v1
62
+ with :
63
+ token : ${{ secrets.GITHUB_TOKEN }}
64
+
54
65
- name : Free disk space
55
66
uses : ./.github/actions/free-disk-space
56
67
68
+ - name : Run vcs import
69
+ run : |
70
+ mkdir src
71
+ vcs import src < autoware.repos
72
+
57
73
- name : Build 'autoware-openadk'
58
74
uses : ./.github/actions/docker-build-and-push
59
75
with :
Original file line number Diff line number Diff line change @@ -40,14 +40,10 @@ WORKDIR /autoware
40
40
RUN --mount=type=ssh \
41
41
./setup-dev-env.sh -y rosdep \
42
42
&& pip uninstall -y ansible ansible-core \
43
- && pip install --no-cache-dir vcstool \
44
43
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* "$HOME" /.cache
45
44
46
- WORKDIR /autoware
47
- COPY autoware.repos /autoware/
48
- RUN --mount=type=ssh \
49
- mkdir src \
50
- && vcs import src < autoware.repos
45
+ # Copy repository files
46
+ COPY src /autoware/src
51
47
52
48
# Generate install package lists
53
49
RUN rosdep update && rosdep keys --ignore-src --from-paths src \
@@ -83,7 +79,6 @@ RUN --mount=type=ssh \
83
79
&& find / -name 'libnv*.a' -delete
84
80
85
81
# Install rosdep dependencies
86
- COPY --from=src-imported /autoware/src /autoware/src
87
82
COPY --from=src-imported /rosdep-all-depend-packages.txt /tmp/rosdep-all-depend-packages.txt
88
83
# hadolint ignore=SC2002
89
84
RUN --mount=type=ssh \
@@ -92,6 +87,7 @@ RUN --mount=type=ssh \
92
87
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* "$HOME" /.cache
93
88
94
89
# Build Autoware
90
+ COPY --from=src-imported /autoware/src /autoware/src
95
91
RUN source /opt/ros/"$ROS_DISTRO" /setup.bash \
96
92
&& colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --cmake-args \
97
93
" -Wno-dev" \
You can’t perform that action at this time.
0 commit comments