Skip to content

Commit 1b96a7e

Browse files
author
Joseph Bowkett
committed
Supply cog cli to container
1 parent 7583f4f commit 1b96a7e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/cog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/python3
2+
# -*- coding: utf-8 -*-
3+
import re
4+
import sys
5+
from cogapp import main
6+
if __name__ == '__main__':
7+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8+
sys.exit(main())

.github/workflows/ros2_build_and_tag.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ env:
3131

3232
# Define the commands that need to be run to establish all the dependencies
3333
# for your package. This will be run in the src directory so you can clone
34-
# other git packages via https if needed
34+
# other git packages via https if needed. Note you may need to use the
35+
# virtual env python installer pipx due to directory permissions
3536
DEPENDENCY_INSTALL_COMMANDS: |
3637
apt-get update
3738
apt-get install -y libyaml-cpp-dev libreadline-dev doxygen
3839
apt-get install -y python3-yaml python3-graphviz python3-ipython
3940
apt-get install -y python3-pip pipx
4041
pipx install cogapp
42+
cp ./.github/cog /user/local/bin
4143
git clone --depth 1 --branch v0.2.0 https://github.com/nasa-jpl/fcat_msgs.git
4244
4345
jobs:

0 commit comments

Comments
 (0)