Skip to content

Commit 062d54a

Browse files
committed
workflows: clean up repo artefacts from base image, repair build action
1 parent 832bf62 commit 062d54a

2 files changed

Lines changed: 8 additions & 21 deletions

File tree

.github/workflows/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ RUN find . -name "*.repos" -exec vcs import --recursive --input {} src \;
2424
RUN rosdep update && \
2525
. /opt/ros/${ROS_DISTRO}/setup.sh && \
2626
rosdep install --from-paths src --ignore-src --skip-keys "python3-unified-planning-pip python3-sb3-contrib-pip" -r -y
27+
28+
RUN rm -rfd src

.github/workflows/build_tests.yaml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,19 @@ jobs:
1111
runs-on: ubuntu-24.04
1212
container:
1313
image: quay.io/carologistics/clips_executive_base_image:kilted
14-
options: --user root
14+
options: --user root --workdir /ros_ws
1515
steps:
16-
- name: Checkout repository
17-
uses: actions/checkout@v3
18-
with:
19-
fetch-depth: 0 # ensures full git history is present
20-
2116
- name: Install pre-commit
2217
run: |
2318
apt update && apt install -y pre-commit git
2419
20+
- name: Checkout repository
21+
uses: actions/checkout@v6
22+
2523
- name: Run pre-commit hooks
26-
working-directory: /github/workspace
2724
run: |
28-
# Source ROS environment
2925
. /opt/ros/kilted/setup.sh
30-
31-
# Run pre-commit in the repository
3226
pre-commit run --all-files --hook-stage manual
33-
env:
34-
PRE_COMMIT_HOME: /var/cache/pre-commit
3527
3628
ros-build:
3729
runs-on: ubuntu-24.04
@@ -41,22 +33,15 @@ jobs:
4133
ros_distro: [humble, jazzy, kilted]
4234
container:
4335
image: quay.io/carologistics/clips_executive_base_image:${{ matrix.ros_distro }}
44-
options: --user root
36+
options: --user root --workdir /ros_ws
4537
steps:
4638
- name: Checkout repository
47-
uses: actions/checkout@v3
39+
uses: actions/checkout@v6
4840

4941
- name: Build ROS workspace
5042
run: |
5143
set -e
5244
export ROS_DISTRO=${{ matrix.ros_distro }}
5345
echo "Building workspace for $ROS_DISTRO"
5446
. /opt/ros/$ROS_DISTRO/setup.sh
55-
cd /ros_ws
5647
colcon build --merge-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF
57-
58-
- name: Run ROS tests
59-
run: |
60-
. /opt/ros/${{ matrix.ros_distro }}/setup.sh
61-
cd /ros_ws
62-
colcon test

0 commit comments

Comments
 (0)