Skip to content

Commit

Permalink
Clone repos into repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Flova committed Jan 19, 2024
1 parent 62fd693 commit 7cd6557
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 20 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,11 @@ jobs:
- name: Install proprietary basler drivers
run: make basler ARGS="-ci"
- name: Install packages via rosdep
run: |
rosdep update
sudo apt install -y libunwind-dev
# Small hack to make rosdep install all dependencies at once
# See https://github.com/ros-infrastructure/rosdep/issues/671
bash -c "sudo apt install -y $(rosdep check --from-paths .. --ignore-src --rosdistro iron | sed -n 's/^apt\s\+//p' | tr '\n' ' ')"
run: make rosdep
- name: Set up colcon workspace
run: |
mkdir /colcon_ws
ls -s $(realpath ..) /colcon_ws/src
mkdir /colcon_ws/src
ls -s $(realpath .) /colcon_ws/src/bitbots_meta
- name: Build packages
run: |
. /opt/ros/iron/setup.sh
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ bitbots_docs_internal
**/cmake-build-*

# Neural Network Model Path
bitbots_vision/bitbots_vision/models/
/bitbots_vision/bitbots_vision/models/

**/.*.
.idea/*
Expand All @@ -216,4 +216,6 @@ ansible_robots/*
doc_internal/*
doku/*

# library subdirectories
/lib/

20 changes: 13 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ basler:
install: pull-init basler update

master:
vcs import .. < workspace.repos
vcs import . < workspace.repos

pip:
# Install and upgrade pip dependencies
Expand All @@ -20,17 +20,23 @@ pre-commit:

pull-all:
git pull
vcs pull ..
vcs pull .
scripts/pull_files.bash

pull-init:
git pull
setup-libs
scripts/pull_files.bash

clean-libs:
rm -rf lib/*

setup-libs:
ifeq ($(HTTPS), true)
awk '{sub("git@github.com:", "https://github.com/"); print " " $$0}' workspace.repos | vcs import .. --skip-existing
awk '{sub("git@github.com:", "https://github.com/"); print " " $$0}' workspace.repos | vcs import .
else
vcs import .. --skip-existing < workspace.repos
vcs import . < workspace.repos
endif
scripts/pull_files.bash

pull-files:
scripts/pull_files.bash
Expand All @@ -40,9 +46,9 @@ rosdep:
rosdep update
# Small hack to make rosdep install all dependencies at once
# See https://github.com/ros-infrastructure/rosdep/issues/671
bash -c "sudo apt install -y $(rosdep check --from-paths .. --ignore-src --rosdistro iron | sed -n 's/^apt\s\+//p' | tr '\n' ' ')"
bash -c "sudo apt install -y $(rosdep check --from-paths . --ignore-src --rosdistro iron | sed -n 's/^apt\s\+//p' | tr '\n' ' ')"

status:
vcs status ..
vcs status .

update: pull-all rosdep pip pre-commit
4 changes: 0 additions & 4 deletions workspace.repos
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
repositories:
bitbots_meta:
type: git
url: git@github.com:bit-bots/bitbots_meta.git
version: monorepo
lib/dynamic_stack_decider:
type: git
url: git@github.com:bit-bots/dynamic_stack_decider.git
Expand Down

0 comments on commit 7cd6557

Please sign in to comment.