File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 65
65
66
66
docker-build-and-push-cuda :
67
67
needs : [load-env, docker-build-and-push]
68
- runs-on : codebuild-autoware-us-east-1-${{ github.run_id }}-${{ github.run_attempt }}- ubuntu-7.0-large
68
+ runs-on : ubuntu-22.04
69
69
steps :
70
70
- name : Check out repository
71
71
uses : actions/checkout@v4
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
function cleanup_apt() {
4
- local remove_var_lib_apt_lists =$1
5
- apt-get autoremove -y && rm -rf " $HOME " /.cache
6
- if [[ $remove_var_lib_apt_lists == true ]]; then
7
- rm -rf /var/lib/apt/lists/ *
4
+ local apt_clean =$1
5
+ apt-get autoremove -y && rm -rf /var/lib/apt/lists/ * " $HOME " /.cache
6
+ if [[ $apt_clean == true ]]; then
7
+ apt-get clean
8
8
fi
9
9
}
10
10
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ function cleanup_system() {
4
4
local lib_dir=$1
5
5
local ros_distro=$2
6
6
7
- apt-get autoremove -y && rm -rf " $HOME " /.cache &&
8
- find /usr/lib/" $lib_dir " -linux-gnu -name " *.a" -type f -delete &&
7
+ find /usr/lib/" $lib_dir " -linux-gnu -name " *.a" -type f -delete &&
9
8
find / -name " *.o" -type f -delete &&
10
9
find / -name " *.h" -type f -delete &&
11
10
find / -name " *.hpp" -type f -delete &&
12
11
rm -rf /autoware/ansible /autoware/ansible-galaxy-requirements.yaml /autoware/setup-dev-env.sh /autoware/* .env \
13
- /root/.local/pipx /opt/ros/" $ros_distro " /include /etc/apt/sources.list.d/cuda* .list \
12
+ /root/.local/pipx /opt/ros/" $ros_distro " /include /opt/autoware/include / etc/apt/sources.list.d/cuda* .list \
14
13
/etc/apt/sources.list.d/docker.list /etc/apt/sources.list.d/nvidia-docker.list \
15
14
/usr/include /usr/share/doc /usr/lib/gcc /usr/lib/jvm /usr/lib/llvm*
16
15
}
17
16
17
+ ./cleanup_apt.sh
18
18
cleanup_system " $@ "
You can’t perform that action at this time.
0 commit comments