Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #338 from k-okada/fix_ga
.github/workflow: integrate all yaml to one
- Loading branch information
Showing
10 changed files
with
131 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
env: | ||
DISPLAY: ':0.0' | ||
|
||
jobs: | ||
ros: | ||
runs-on: ubuntu-latest | ||
# continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- ROS_DISTRO: kinetic | ||
CONTAINER: ubuntu:16.04 | ||
ROS_PARALLEL_TEST_JOBS: "-j8" | ||
CATKIN_PARALLEL_JOBS: "-i" | ||
EXTRA_DEB : "python-lxml" | ||
- ROS_DISTRO: melodic | ||
CONTAINER: ubuntu:18.04 | ||
ROS_PARALLEL_TEST_JOBS: "-j8" | ||
CATKIN_PARALLEL_JOBS: "-i" | ||
- ROS_DISTRO: noetic | ||
CONTAINER: ubuntu:20.04 | ||
ROS_PARALLEL_TEST_JOBS: "-j8" | ||
CATKIN_PARALLEL_JOBS: "-i" | ||
- ROS_DISTRO: noetic | ||
CONTAINER: ubuntu:20.04 | ||
ROS_PARALLEL_TEST_JOBS: "-j8" | ||
CATKIN_PARALLEL_JOBS: "-i" | ||
USE_DEB : false | ||
|
||
|
||
container: ${{ matrix.CONTAINER }} | ||
steps: | ||
- name: Install latest git ( use sudo for ros-ubuntu ) | ||
run: | | ||
(apt-get update && apt-get install -y sudo) || echo "OK" | ||
sudo apt-get update && sudo apt-get install -y software-properties-common && sudo apt-get update && sudo add-apt-repository -y ppa:git-core/ppa && sudo apt-get update && sudo apt-get install -y git | ||
- name: work around permission issue # https://github.com/actions/checkout/issues/760#issuecomment-1097501613 | ||
run: | | ||
set -x | ||
export USER=$(whoami) | ||
if [ "${{ matrix.CONTAINER }}" = "jskrobotics/ros-ubuntu:14.04" ]; then | ||
git config --global --add safe.directory $GITHUB_WORKSPACE || echo "OK" # Show 'could not lock config file /github/home/.gitconfig: Permission denied', but it is ok | ||
sudo mkdir -p /__w/ | ||
sudo chmod 777 -R /__w/ | ||
sudo chown -R $USER $HOME | ||
# sudo mkdir -p /home/runner/work/_temp/_github_workflow/ | ||
# sudo chown -R $USER $HOME /home/runner/work/_temp/_github_workflow/ | ||
# ls -al /home/runner/work/_temp/_github_workflow/ | ||
else | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
fi | ||
- name: Chcekout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Start X server | ||
run: | | ||
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections || echo "failing on ros-ubuntu is OK" # set non interactive tzdata https://stackoverflow.com/questions/8671308/non-interactive-method-for-dpkg-reconfigure-tzdata | ||
sudo apt-get -y -qq install mesa-utils x11-xserver-utils xserver-xorg-video-dummy wget | ||
export DISPLAY=:0 | ||
wget https://raw.githubusercontent.com/jsk-ros-pkg/jsk_travis/master/dummy.xorg.conf -O /tmp/dummy.xorg.conf | ||
sudo Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile /tmp/xorg.log -config /tmp/dummy.xorg.conf $DISPLAY & | ||
sleep 3 # wait x server up | ||
export QT_X11_NO_MITSHM=1 # http://wiki.ros.org/docker/Tutorials/GUI | ||
xhost +local:root | ||
- name: Run jsk_travis | ||
uses: jsk-ros-pkg/jsk_travis@master | ||
with: | ||
ROS_PARALLEL_JOBS : ${{ matrix.ROS_PARALLEL_JOBS }} | ||
CATKIN_PARALLEL_JOBS : ${{ matrix.CATKIN_PARALLEL_JOBS }} | ||
ROS_PARALLEL_TEST_JOBS : ${{ matrix.ROS_PARALLEL_TEST_JOBS }} | ||
CATKIN_PARALLEL_TEST_JOBS : ${{ matrix.CATKIN_PARALLEL_TEST_JOBS }} | ||
ROS_DISTRO : ${{ matrix.ROS_DISTRO }} | ||
USE_DEB : ${{ matrix.USE_DEB }} | ||
NOT_TEST_INSTALL : ${{ matrix.NOT_TEST_INSTALL }} | ||
TEST_PKGS : ${{ matrix.TEST_PKGS }} | ||
BEFORE_SCRIPT : ${{ matrix.BEFORE_SCRIPT }} | ||
EXTRA_DEB : ${{ matrix.EXTRA_DEB }} | ||
|
||
kinetic_i386: | ||
runs-on: ubuntu-latest | ||
name: kinetic_i386 | ||
|
||
container: i386/ubuntu:16.04 | ||
|
||
steps: | ||
- name: Install latest git ( use sudo for ros-ubuntu ) | ||
run: apt-get update && apt-get install -y software-properties-common && apt-get update && add-apt-repository -y ppa:git-core/ppa && apt-get update && apt-get install -y git | ||
- name: Chcekout | ||
run: | | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
git clone --depth=1 $GITHUB_SERVER_URL/$GITHUB_REPOSITORY $GITHUB_WORKSPACE | ||
cd $GITHUB_WORKSPACE | ||
git checkout -qf $GITHUB_SHA || (git fetch -q origin +$GITHUB_REF; git checkout -qf FETCH_HEAD) | ||
git submodule update --init .travis | ||
- name: Run jsk_travis | ||
uses: jsk-ros-pkg/jsk_travis@master | ||
with: | ||
EXTRA_DEB : "python-lxml" | ||
ROS_DISTRO : kinetic | ||
ROS_PARALLEL_TEST_JOBS : "-j8" | ||
CATKIN_PARALLEL_JOBS: "-i" | ||
ROSDEP_ADDITIONAL_OPTIONS : "-n -q -r --ignore-src --skip-keys=python-google-cloud-texttospeech-pip --skip-keys=python-dialogflow-pip" # Skip installation of grpcio by pip because it causes error | ||
# https://github.com/jsk-ros-pkg/jsk_3rdparty/pull/237 : (Note that pip==21.0.1 is incompatible with python 2.x) | ||
BEFORE_SCRIPT : "sudo pip install virtualenv==15.1.0" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters