Skip to content

Commit

Permalink
Merge pull request #61 from MOLAorg/update-ci
Browse files Browse the repository at this point in the history
Fix checkout code in CI actions
  • Loading branch information
jlblancoc committed Aug 8, 2024
2 parents c764497 + 0f8de84 commit 4df67dc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build-ros.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Based on GTSAM file (by @ProfFan)
name: CI Build colcon

on: [push, pull_request]
on: [push]

jobs:
build_docker: # On Linux, iterates on all ROS 1 and ROS 2 distributions.
Expand Down Expand Up @@ -42,9 +42,9 @@ jobs:
ros_version: 2

# Rolling Ridley (No End-Of-Life)
# - docker_image: ubuntu:noble
# ros_distribution: rolling
# ros_version: 2
- docker_image: ubuntu:noble
ros_distribution: rolling
ros_version: 2

container:
image: ${{ matrix.docker_image }}
Expand All @@ -55,6 +55,9 @@ jobs:
apt-get -y update
apt-get -y install git
git clone https://github.com/$GITHUB_REPOSITORY.git --recursive "$GITHUB_WORKSPACE"
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git checkout $GITHUB_SHA
git submodule update --init --recursive
- name: setup ROS environment
uses: ros-tooling/setup-ros@v0.7
Expand Down

0 comments on commit 4df67dc

Please sign in to comment.