Skip to content

Commit 1d16d77

Browse files
authored
Merge pull request #621 from k-okada/add_catkin_test
.github/workflows/config.yml: add test for compile in catkin
2 parents c4b9a11 + 7b91e10 commit 1d16d77

File tree

2 files changed

+72
-1
lines changed

2 files changed

+72
-1
lines changed

.github/workflows/config.yml

+69
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,75 @@ jobs:
5252
echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME"
5353
docker run --rm $QEMU_VOLUME -v $CI_SOURCE_PATH:$CI_SOURCE_PATH -e "DOCKER_IMAGE=$DOCKER_IMAGE" -e "COLLISION_LIB=$COLLISION_LIB" -e "CI_SOURCE_PATH=$CI_SOURCE_PATH" -e "HOME=$HOME" -t $DOCKER_IMAGE sh -c "cd $CI_SOURCE_PATH; ./.travis.sh"
5454
55+
catkin:
56+
runs-on: ubuntu-18.04
57+
timeout-minutes: 60
58+
59+
steps:
60+
- name: Checkout
61+
uses: actions/checkout@v2
62+
- name: Setup Apt
63+
run: |
64+
echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections
65+
sudo apt-get update -qq
66+
sudo apt-get install -qq -y lsb-release wget gnupg2 # necessary for catkin-pkg to be installable
67+
sudo apt-get install -qq -y dpkg # necessary for catkin-pkg to be installable
68+
echo "Testing branch $GITHUB_REF of $GITHUB_REPOSITORY"
69+
sudo sh -c 'echo "deb http://packages.ros.org/ros-shadow-fixed/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'
70+
wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
71+
sudo apt-get update -qq
72+
sudo apt-get install -qq -y python-catkin-tools python-rosdep
73+
sudo apt-get install -qq -y build-essential git ros-melodic-rosbash ros-melodic-rospack
74+
- name: Setup Src
75+
shell: bash
76+
run: |
77+
export CI_SOURCE_PATH=$(pwd)
78+
mkdir -p ~/catkin_ws/src
79+
cd ~/catkin_ws/src
80+
# checkout euslisp
81+
git clone --depth 1 https://github.com/tork-a/euslisp-release euslisp
82+
for file in CMakeLists.txt cmake/euslisp-extras.cmake.in env-hooks/99.euslisp.sh.in; do
83+
wget https://raw.githubusercontent.com/tork-a/euslisp-release/master/patches/${file} -O euslisp/${file}
84+
done
85+
wget https://raw.githubusercontent.com/tork-a/euslisp-release/release/melodic/euslisp/package.xml -O euslisp/package.xml
86+
# checkout jskeus
87+
cp -r ${CI_SOURCE_PATH} ./jskeus
88+
wget https://raw.githubusercontent.com/tork-a/jskeus-release/release/melodic/jskeus/package.xml -O jskeus/package.xml
89+
wget https://raw.githubusercontent.com/tork-a/jskeus-release/master/patches/CMakeLists.txt -O jskeus/CMakeLists.txt
90+
# rosdep install
91+
cd ..
92+
sudo rosdep init
93+
rosdep update
94+
rosdep install -y -r --rosdistro melodic --from-paths src --ignore-src
95+
- name: Build
96+
shell: bash
97+
run: |
98+
source /opt/ros/melodic/setup.bash
99+
cd ~/catkin_ws
100+
catkin build -v -i --make-args VERBOSE=1
101+
- name: Test
102+
shell: bash
103+
run: |
104+
cd ~/catkin_ws
105+
ls -al devel
106+
source devel/setup.bash
107+
env
108+
cd devel/share/euslisp
109+
find jskeus/irteus/test -iname "*.l" | grep -v unittest.l | xargs -n1 irteusgl
110+
- name: Cleanup
111+
shell: bash
112+
run: |
113+
source /opt/ros/melodic/setup.bash
114+
cd ~/catkin_ws
115+
catkin clean --yes
116+
- name: Build Install
117+
shell: bash
118+
run: |
119+
source /opt/ros/melodic/setup.bash
120+
cd ~/catkin_ws
121+
catkin config --install
122+
catkin build -v -i --make-args VERBOSE=1
123+
55124
doc:
56125
runs-on: ubuntu-latest
57126
timeout-minutes: 60

irteus/Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ ifeq ($(HAVE_BULLET), 1)
8888
BULLETLIB=`pkg-config bullet --libs`
8989
endif
9090

91+
PNG_CFLAGS=`pkg-config libpng --cflags`
92+
9193
MODULES.L=irt_modules.l
9294
EUSLIB_MODULES.L=$(addprefix $(EUSDIR)/lib/,$(MODULES.L))
9395

@@ -284,7 +286,7 @@ $(INSTALLOBJDIR)/CBULLET.$(OSFX): CBULLET.cpp defun.h
284286
$(INSTALLOBJDIR)/eusbullet.$(OSFX): eusbullet.c defun.h
285287
$(CC) $(CFLAGS) $(WFLAGS) $(BULLETCFLAGS) -c eusbullet.c $(OBJOPT)$(INSTALLOBJDIR)/eusbullet.$(OSFX)
286288
$(INSTALLOBJDIR)/euspng.$(OSFX): euspng.c defun.h
287-
$(CC) $(CFLAGS) $(WFLAGS) -c euspng.c $(OBJOPT)$(INSTALLOBJDIR)/euspng.$(OSFX)
289+
$(CC) $(PNG_CFLAGS) $(CFLAGS) $(WFLAGS) -c euspng.c $(OBJOPT)$(INSTALLOBJDIR)/euspng.$(OSFX)
288290
$(INSTALLOBJDIR)/nr.$(OSFX): nr.c defun.h
289291
$(CC) $(CFLAGS) $(WFLAGS) -c nr.c $(OBJOPT)$(INSTALLOBJDIR)/nr.$(OSFX)
290292

0 commit comments

Comments
 (0)