graspPlugin Builder #393
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
name: graspPlugin Builder | |
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 1' | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
master: | |
name: graspPlugin + latest Choreonoid | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
matrix: | |
ubuntu-version: ["focal"] | |
container: | |
image: ubuntu:${{ matrix.ubuntu-version }} | |
steps: | |
- name: Install dependent packages | |
run: | | |
apt update | |
apt install git wget sudo lsb-release -yq | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
lfs: false | |
- name: Fetch graspPlugin from original gitlab | |
run: git clone http://${{ secrets.GRASPPLUGIN_CRED_USER }}:${{ secrets.GRASPPLUGIN_CRED_PASS }}@spica.ms.t.kanazawa-u.ac.jp/gitlab/tsuji/grasp-plugin.git --depth 1 -b fix_compatibility_2004_2204 ../grasp-plugin | |
- name: Execute setup_choreonoid_master.sh (without RobotInterface) | |
shell: bash | |
run: cd .. && ./hlab-nxo-setup/setup_choreonoid_master.sh 5c567870 | |
orig: | |
name: graspPlugin(original) | |
runs-on: ubuntu-latest | |
timeout-minutes: 90 | |
strategy: | |
fail-fast: false | |
matrix: | |
cnoid_tag: [ "v1.7.0", "v1.6.0", "v1.5.0" ] | |
rosdistro: [ "noetic", "melodic", "kinetic", "indigo" ] | |
container: | |
image: ros:${{ matrix.rosdistro }} | |
steps: | |
- name: Install dependent packages | |
run: | | |
apt update | |
apt install git wget -yq | |
- name: Clone | |
run: git clone https://github.com/kazuki0824/hlab-nxo-setup.git . --recurse-submodules | |
# - name: Fetch dependencies from rosinstall | |
# if: ${{ matrix.rosdistro == 'noetic' }} | |
# run: vcs import overlay_ws/src < overlay_ws/.rosinstall | |
# - name: Bloom externals | |
# if: ${{ matrix.rosdistro == 'noetic' }} | |
# run: | | |
# bloom-generate rosdebian --ros-distro noetic | |
- name: Fetch graspPlugin from original gitlab | |
run: git clone http://${{ secrets.GRASPPLUGIN_CRED_USER }}:${{ secrets.GRASPPLUGIN_CRED_PASS }}@spica.ms.t.kanazawa-u.ac.jp/gitlab/tsuji/grasp-plugin.git --depth 1 -b fix_compatibility_2004_2204 ../grasp-plugin | |
- name: Install dependencies (non-noetic) | |
shell: bash | |
if: ${{ matrix.rosdistro != 'noetic' }} | |
run: | | |
apt update | |
apt install -y wget -q | |
rosdep update --include-eol-distros || : | |
source /opt/ros/${{ matrix.rosdistro }}/setup.bash && rosdep install -y -i -q --from-paths overlay_ws/src/grasp_plugin_meta | |
- name: Install dependencies (noetic) | |
shell: bash | |
if: ${{ matrix.rosdistro == 'noetic' }} | |
run: | | |
cd ./overlay_ws | |
CI=1 ./setup_rtmros_ws.sh -y | |
cd .. | |
- name: Execute setup_choreonoid.sh | |
shell: bash | |
run: source /opt/ros/${{ matrix.rosdistro }}/setup.bash && cd .. && CI=1 ./hlab-nxo-setup/setup_choreonoid.sh ${{ matrix.cnoid_tag }} | |