Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI Test #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/add_ros_apt_sources.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#! /bin/bash
sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add -
apt update -qq
22 changes: 10 additions & 12 deletions .github/workflows/bionic_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,17 @@ on:

jobs:
industrial_ci:
name: Melodic
name: Bionic-Build
runs-on: ubuntu-latest
env:
CI_NAME: Bionic-Build
OS_NAME: ubuntu
OS_CODE_NAME: bionic
ROS_DISTRO: melodic
ROS_REPO: main
UPSTREAM_WORKSPACE: 'dependencies.rosinstall'
ROSDEP_SKIP_KEYS: "iwyu ros_industrial_cmake_boilerplate"
CCACHE_DIR: "/home/runner/work/opw_kinematics/opw_kinematics/Bionic-Build/.ccache"
TARGET_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Debug -DOPW_ENABLE_TESTING=ON"
AFTER_SCRIPT: 'catkin build -w $target_ws --no-deps --verbose opw_kinematics --make-args test'
DOCKER_IMAGE: ubuntu:18.04
ROS_DISTRO: false
ADDITIONAL_DEBS: 'curl lsb-release'
AFTER_INIT: './.github/workflows/add_ros_apt_sources.sh'
UPSTREAM_WORKSPACE: dependencies.rosinstall
ROSDEP_SKIP_KEYS: 'iwyu ros_industrial_cmake_boilerplate'
CCACHE_DIR: /home/runner/work/opw_kinematics/opw_kinematics/Bionic-Build/.ccache
TARGET_CMAKE_ARGS: '-DCMAKE_BUILD_TYPE=Debug -DOPW_ENABLE_TESTING=ON'
steps:
- uses: actions/checkout@v2

Expand All @@ -49,5 +47,5 @@ jobs:
restore-keys: |
${{ env.CI_NAME }}-ccache-

- uses: 'ros-industrial/industrial_ci@master'
- uses: 'mathias-luedtke/industrial_ci@a6e1f7c62997e4ba474e75bf3cf696a0aeb587cc'
env: ${{env}}
44 changes: 9 additions & 35 deletions .github/workflows/clang_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,16 @@ on:
- cron: '0 5 * * *'

jobs:
industrial_ci:
name: Format
clang_format:
name: Clang-Format
runs-on: ubuntu-latest
env:
CI_NAME: Clang-Format
OS_NAME: ubuntu
OS_CODE_NAME: bionic
ROS_DISTRO: melodic
ROS_REPO: main
CLANG_FORMAT_CHECK: file
CLANG_FORMAT_VERSION: 8
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v1

- name: Free Disk Space
- name: Run clang format
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
docker rmi $(docker image ls -aq)
df -h

- name: Prepare ccache timestamp
id: ccache_cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")

- name: ccache cache files
uses: actions/[email protected]
with:
path: ${{ env.CI_NAME }}/.ccache
key: ${{ env.CI_NAME }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
restore-keys: |
${{ env.CI_NAME }}-ccache-

- uses: 'ros-industrial/industrial_ci@master'
env: ${{env}}
sudo apt update
sudo apt install -y git clang-format
./.run-clang-format
output=$(git diff)
if [ -n "$output" ]; then exit 1; else exit 0; fi
22 changes: 10 additions & 12 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,15 @@ jobs:
name: CodeCov
runs-on: ubuntu-latest
env:
CI_NAME: CodeCov
OS_NAME: ubuntu
OS_CODE_NAME: bionic
ROS_DISTRO: melodic
ROS_REPO: main
ADDITIONAL_DEBS: curl
UPSTREAM_WORKSPACE: 'dependencies.rosinstall'
ROSDEP_SKIP_KEYS: "iwyu ros_industrial_cmake_boilerplate"
CCACHE_DIR: "/home/runner/work/opw_kinematics/opw_kinematics/CodeCov/.ccache"
TARGET_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Debug -DOPW_ENABLE_CODE_COVERAGE=ON"
AFTER_SCRIPT: 'catkin build -w $target_ws --no-deps opw_kinematics --make-args ccov-all
DOCKER_IMAGE: ubuntu:20.04
ROS_DISTRO: false
ADDITIONAL_DEBS: 'curl lsb-release'
AFTER_INIT: './.github/workflows/add_ros_apt_sources.sh'
UPSTREAM_WORKSPACE: dependencies.rosinstall
ROSDEP_SKIP_KEYS: 'iwyu ros_industrial_cmake_boilerplate'
CCACHE_DIR: /home/runner/work/opw_kinematics/opw_kinematics/CodeCov/.ccache
TARGET_CMAKE_ARGS: '-DCMAKE_BUILD_TYPE=Debug -DOPW_ENABLE_CODE_COVERAGE=ON'
AFTER_SCRIPT: 'cd $target_ws && export MAKEFLAGS=ccov-all:${MAKEFLAGS:-} && colcon build --packages-select opw_kinematics
&& bash <(curl -s https://codecov.io/bash) -t e964c16f-f94e-4caa-8c82-8a142891a19b -s $target_ws/build -f *all-merged.info'
steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -51,5 +49,5 @@ jobs:
restore-keys: |
${{ env.CI_NAME }}-ccache-

- uses: 'ros-industrial/industrial_ci@master'
- uses: 'marip8/industrial_ci@update/ros-independent-ci'
env: ${{env}}
23 changes: 11 additions & 12 deletions .github/workflows/focal_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@ on:

jobs:
industrial_ci:
name: Noetic
name: Focal-Build
runs-on: ubuntu-latest
env:
CI_NAME: Focal-Build
OS_NAME: ubuntu
OS_CODE_NAME: focal
ROS_DISTRO: noetic
ROS_REPO: main
UPSTREAM_WORKSPACE: 'dependencies.rosinstall'
ROSDEP_SKIP_KEYS: "iwyu ros_industrial_cmake_boilerplate"
CCACHE_DIR: "/home/runner/work/opw_kinematics/opw_kinematics/Focal-Build/.ccache"
BEFORE_RUN_TARGET_TEST_EMBED: "ici_with_unset_variables source /root/target_ws/install/setup.bash"
TARGET_CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Debug -DOPW_ENABLE_TESTING=ON"
DOCKER_IMAGE: ubuntu:20.04
ROS_DISTRO: false
ADDITIONAL_DEBS: 'curl lsb-release'
AFTER_INIT: './.github/workflows/add_ros_apt_sources.sh'
UPSTREAM_WORKSPACE: dependencies.rosinstall
ROSDEP_SKIP_KEYS: 'iwyu ros_industrial_cmake_boilerplate'
CCACHE_DIR: /home/runner/work/opw_kinematics/opw_kinematics/Focal-Build/.ccache
BEFORE_RUN_TARGET_TEST_EMBED: 'ici_with_unset_variables source /root/target_ws/install/setup.bash'
TARGET_CMAKE_ARGS: '-DCMAKE_BUILD_TYPE=Debug -DOPW_ENABLE_TESTING=ON'
steps:
- uses: actions/checkout@v2

Expand All @@ -49,5 +48,5 @@ jobs:
restore-keys: |
${{ env.CI_NAME }}-ccache-

- uses: 'ros-industrial/industrial_ci@master'
- uses: 'mathias-luedtke/industrial_ci@a6e1f7c62997e4ba474e75bf3cf696a0aeb587cc'
env: ${{env}}
15 changes: 8 additions & 7 deletions .github/workflows/package_debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ on:

jobs:
Debian:
name: Noetic
name: Debian-Focal
runs-on: ubuntu-latest
container: ubuntu:20.04
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -24,12 +25,12 @@ jobs:
- name: Install dependencies
working-directory: workspace
run: |
pwd
sudo apt update -q
sudo apt install -q -y clang-tidy python3 python3-pip
sudo pip3 install -q --upgrade pip
sudo pip3 install -q colcon-common-extensions rosdep vcstool
sudo rosdep init -q
export DEBIAN_FRONTEND=noninteractive
apt update -q
apt install -q -y clang-tidy python3 python3-pip
pip3 install -q --upgrade pip
pip3 install -q colcon-common-extensions rosdep vcstool
rosdep init -q
rosdep update -q
vcs import --input "${{ github.workspace }}/workspace/src/opw_kinematics/dependencies.rosinstall" src/
rosdep install --from-paths src --ignore-src -r -y -q
Expand Down