Skip to content

Commit

Permalink
CI: checkout submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Aug 8, 2024
1 parent 52b9175 commit 0f8de84
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 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 @@ -50,8 +50,14 @@ jobs:
image: ${{ matrix.docker_image }}

steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Checkout
run: |
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 0f8de84

Please sign in to comment.